Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Windows and location  RSS feed

 
Jennifer Sohl
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm having a problem with positiong my GUI in the center of my screen. What happens, is first a modal JDialog box comes up in the center of my screen. When the criteria has been met for this box to no longer be visible, I want another GUI to come up in the center of the screen. I've tried doing this using setLocationRelativeTo(null) and it always puts the GUI to the right of where the Dialog Box was. What is going on?
Thanks in advance!
[ March 06, 2002: Message edited by: Jennifer Sohl ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!