Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: big problems with modal dialogs



Dear Jerome,

Indeed, to close the dialog, you should better use this.hide() and then
<dialog>.dispose() from the parent dialog.

However, your problem may also be somehow related with the "ghost frames"
issue reported earlier in this newsgroup. I had a similar problem and have
solved it by adding a small delay between the closing of a child and parent
modal dialogs.

Search this forum for "ghost".

Cheers!

Mariano


-----Message d'origine-----
De : email@hidden
[mailto:email@hidden]De la part de popey
Envoye : mardi, 16. mars 2004 14:35
A : email@hidden
Objet : big problems with modal dialogs


Hello !

I am currently developing a big pur java (swing) appli on mac os, using
Eclipse.

I have big problems with modal dialogs :
- during the first launch of my program, I display a modal dialog to
request an url. When the dialog is closed (dialog.setVisible(false)),
the next window's text fields cannot get focus (I cannot enter any
text).
- In another part of my program, a modal dialog is opened many time
successively. Regularly when the dialog is closed, the program stops,
just as if the window was still modal ! The only solution is to kill
the appli :-(.

Those strange comportment does not appear when the program is ran on a
windows machine.

Does anyone have this kind of problems, or a workaround ?

Thanks a lot !

Jerome Duquennoy
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >big problems with modal dialogs (From: popey <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.