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 open JOptionPane on the same monitor/desktop as the main window?

843806Jun 13 2008 — edited Jun 13 2008
I have an issue with multiple monitors:

My main app opens a pop up JOptionPane.showMessageDialog(). When the main windows is in the secondary monitor the pop up still comes up on the main monitor. This has annoyed a number of the users.

Is there any way the pop up will open in the same monitor/desktop as the main application windows (JFrame)?

Regards,
Chris
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2008
Added on Jun 13 2008
4 comments
1,032 views