• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI Help

 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
I designed an empty JFrame window. It displays left top corner of my screen. How can center it on my screen?
I am thinking to add status bar with three panels on bottom of this window. What class and methods will help to get this? Thanks in advance for response. BK
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bal,
Here's some code that centers a window on the screen.

Can't help you on the status bar.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jane. It looks cool centered now. BK
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic