Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FullScreen in JFrame in jdk 1.2

 
Jan Michael Soan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again;
I had a problem configuring my JFrame to a Maximized state is there someone there knew how to Maximized a JFrame in jdk 1.2 thanks . . .
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jan Michael,
As far as I know, the only way to maximize a "JFrame" in JDK 1.2 is to set its size to the size of the screen. You can use the "getDefaultToolkit()" method to get the default "Toolkit" and then use the methods in class "Toolkit" to get the screen size.
However, the latest JDK (version 1.4) has much better support for maximizing "JFrame"s. Is there some reason why you can't upgrade to the latest version?
Hope this helps you.
Good Luck,
Avi.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic