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



On Mar 16, 2004, at 12:41 PM, Swar Systems wrote:

Dear Jerome,

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

If we are talking about a JDialog then I disagree. show() and hide() are deprecated in Java 1.5. Continuing the trend to move to setVisible(boolean) instead, as was done for Component in Java 1.1.

You should use setVisible(false), or dispose() if you don't intend to make the same dialog visible again. You don't need a setVisible(false) if you are just going to call dispose() anyway.

That being said. I have had problems with dialogs shown from modal dialogs on all platforms. E.g. a help dialog launched from an input dialog. Issues with focus and event processing are the main things.

Have you searched Sun's bug database?

Scott
_______________________________________________
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: 
 >RE: big problems with modal dialogs (From: "Swar Systems" <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.