• Post Reply Bookmark Topic Watch Topic
  • New Topic

maximize JFrame when showing

 
Marcus Hoe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I show my JFrame in its maximized-size when I set it visisble? Also can I check the resolution of the system (eg 800x600 or 1024x768) in my program?
Many thanks.
 
Daniel Searson
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get the screen size, use:
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!