• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change JOptionPane pop-up location.  RSS feed

 
Lou Pelagalli
Ranch Hand
Posts: 150
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!