Article View: borland.public.jbuilder.java.language
Article #18422Creating and Destroying Dialogs
From: Thomas Wynne
Date: Sun, 28 Jun 1998 00:00
Date: Sun, 28 Jun 1998 00:00
19 lines
1355 bytes
1355 bytes
I'm currently transforming from a MFC programmer to a Java one, and
I'm having a hard time destroying or getting rid of a dialog. I'm
creating it as follows from a menu event:
void New_Monster_actionPerformed(ActionEvent e) {
CREATE_MONSTER monster = new CREATE_MONSTER(this, true);
monster.show();
Once the .show() is called control is supposed to be contained
inside of the .show() because the dialog is modal. When the user closes
the dialog via the x in the upper right corner the program should
continue on, at least that's what all the books say. When the user
clicks on the x the dialog remains on the screen and there is no way to
close the dialog. Does anybody know what I am doing wrong here? The
dialog is not a Javabean. Thanks
Thomas Wynne
Technical Details
Message-ID:
<35971C85.89095C3D@comp.uark.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4578d7f28fa841f1,start X-Google-Attributes: gidf74b3,public From: Thomas Wynne <twynne@comp.uark.edu> Subject: Creating and Destroying Dialogs Date: 1998/06/28 Message-ID: <35971C85.89095C3D@comp.uark.edu> X-Deja-AN: 366974414 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) Mime-Version: 1.0 Reply-To: twynne@comp.uark.edu Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language