File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Change JOptionPane pop-up location." Watch "Change JOptionPane pop-up location." New topic
Author

Change JOptionPane pop-up location.

Lou Pelagalli
Ranch Hand

Joined: Nov 11, 2003
Posts: 150
    
    1
Hi,
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,
Lou
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Change JOptionPane pop-up location.
 
Similar Threads
[B]How To Center/Position a showMessageDialog box?[/B]
Change size of progress monitor
Problem with tabbing behind glasspane
Opening a Dialog/Frame from Applet
Changing bgcolor of JOptionPane