aspose file tools
The moose likes Swing / AWT / SWT / JFace and the fly likes JOptionPane and modality. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "JOptionPane and modality." Watch "JOptionPane and modality." New topic
Author

JOptionPane and modality.

hernan silberman
Greenhorn

Joined: Nov 20, 2001
Posts: 27
The "How to Make Dialogs" document on java.sun.com has this mysterious message in it:
---------------------------------------
Note: The internal frames that JOptionPane creates currently behave differently from modal dialogs. They don't behave modally, and in general seem more like frames than like dialogs. For this reason, we don't currently recommend their use."
---------------------------------------
This isn't explained in the API docs, which I find disturbing. Anyhow, I checked the 1.3 and 1.4 API docs and there doesn't appear to be any support for modal "Internal Dialogs" of any sort.
I'm wondering if this is really true, or if there is a workable solution to this dilemma which doesn't involve using JOptionPane static methods on my honest-to-god JFrame that contains my DesktopPane.
Any comments are greatly appreciated.
thanks!
hernan
 
IntelliJ Java IDE
 
subject: JOptionPane and modality.
 
Threads others viewed
JFrame as a Dialog
Is JOptionPane thread safe?
Creating new JFrame on click of JButton
Modal dialog problem with JApplet
modal in jdk1.3 & Win2000
IntelliJ Java IDE