Article View: borland.public.jbuilder.java.language
Article #16476Re: Closing all opened frames at logout
From: flashback
Date: Sat, 13 Feb 1999 00:00
Date: Sat, 13 Feb 1999 00:00
41 lines
1909 bytes
1909 bytes
howdy, C Javier Castro Peña wrote: > > I am doing a client/server application. After the user logs to the > database, he can open many Frames, by when he logouts they remain open. > Is there some special mechanism that I could use to close all the opened > frames when the user logs out? > don't know if i got you right, but i've understood that you want to remain the application runnding, only the db-frames should be closed, right? well, one possibility would be a good oo-design, for example to create a dbConnect-object (no sir, that's *no* bean, you have to do it!) which has a vector of frames. so if a new dbFrame is opened, each reference of these frames is stored in the vector. this dbConnect-class must (besides the logon-method) also provide the logout-method (or, instead a finalizer), which then should call the dispose()-method for each frame. btw., you should define at least the logon - and logout-methods static, better, make the whole class a SINGLETON (if you don't know about a singleton, a good book to read is "design patterns" from gamma/helm/johnson/vlissides) hope this helps gregor -- the best is yet to come... http://www.netcologne.de/~nc-schneigr icq-# 14100227 public key available at pgp.ai.mit.edu
Technical Details
Message-ID:
<36C56B56.900F48A1@netcologne.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36C4DC04.37DA7958@ittc.ukans.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,831ffd8649540a25 X-Google-Attributes: gidf74b3,public From: flashback <flashback@netcologne.de> Subject: Re: Closing all opened frames at logout Date: 1999/02/13 Message-ID: <36C56B56.900F48A1@netcologne.de> X-Deja-AN: 443945860 Content-Transfer-Encoding: quoted-printable References: <36C4DC04.37DA7958@ittc.ukans.edu> X-Accept-Language: en,de Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: flashback@netcologne.de Newsgroups: borland.public.jbuilder.java.language