Article View: borland.public.jbuilder.java.language
Article #17799Re: Problem with dialog
From: Dillan Fernando
Date: Sat, 03 Oct 1998 00:00
Date: Sat, 03 Oct 1998 00:00
36 lines
1290 bytes
1290 bytes
Hi!
Dialog accepts three parameters, a Frame, A String and a boolean. If the
third parameter is true, the dialog is open in Modal mode. What you have to
do is to open the Dialog in Modal.
I think you can even hard code "true" in MessageDialog(..) constructor..
Hope this helps !!
Regards
Dillan Fernando
Dan Patterson wrote in message <6utgtl$qa518@forums.borland.com>...
>I am using a dialog as shown below. However I cannot get the dialog to
>close/disappear before the actapplet.mainFrame.postbutton method has
>finished. Any suggestions ?
>
>
>
>MessageDialog temp = new MessageDialog(new Frame(),"Alert","Do you really
>want to do this ?"),6);
>
>temp.show();
>
>if (temp.getResult() == 2) {
> actapplet.mainFrame.postButton_mouseReleased(null);
>}
>
>
>Thanks
>
>Dan.
>
>
>
Technical Details
Message-ID:
<6v3eud$6096@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6utgtl$qa518@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,22680a4356ebb85f X-Google-Attributes: gidf74b3,public From: "Dillan Fernando" <dillan@geocities.com> Subject: Re: Problem with dialog Date: 1998/10/03 Message-ID: <6v3eud$6096@forums.borland.com> X-Deja-AN: 397163712 References: <6utgtl$qa518@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Palmware Newsgroups: borland.public.jbuilder.java.language