This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes FullScreen in JFrame in jdk 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "FullScreen in JFrame in jdk 1.2" Watch "FullScreen in JFrame in jdk 1.2" New topic

FullScreen in JFrame in jdk 1.2

Jan Michael Soan
Ranch Hand

Joined: Feb 08, 2003
Posts: 36
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

Joined: Oct 11, 2000
Posts: 1121

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,
I agree. Here's the link:
subject: FullScreen in JFrame in jdk 1.2
Similar Threads
Full screen mode in Netbeans
getX and getY not updated when maximized
JFrame maximized, display taskbar
Regarding JFrame maximise and minimise