Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I set a JOptionPane to be modal only for one parent component ??

843804Feb 4 2002 — edited Feb 4 2005
Hello,

I have several Frames that are independants. When I show a JOptionPane I'd like that the frame that opens the JOptionPane is blocked while the others are still available.

If I use a JDialog and set modal= true, it doesn't change anything.

How could I set the JOptionPane so it's modal only for one of the several frames that are present ?

Is there a solution to do this using threads ??
What about starting each frame in a separate thread ??

Herbien.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2005
Added on Feb 4 2002
15 comments
562 views