It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes Change JOptionPane pop-up location. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Change JOptionPane pop-up location." Watch "Change JOptionPane pop-up location." New topic

Change JOptionPane pop-up location.

Lou Pelagalli
Ranch Hand

Joined: Nov 11, 2003
Posts: 150
Can you tell me how to get JOptionPane to pop up where I tell it?
I have tried
Frame parentComponent = new Frame();
parentComponent.setBounds(new Rectangle(1, 1, 00, 100));
JOptionPane.showMessageDialog(parentComponent, "Some Error Message",
"WindowTitle", JOptionPane.ERROR_MESSAGE);
and I also tried JFrame for the parentComponent.
It still pops up in the middle of the screen.
Thank You in Advance for Your Help,
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Change JOptionPane pop-up location.
It's not a secret anymore!