File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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,
Don't get me started about those stupid light bulbs.
subject: FullScreen in JFrame in jdk 1.2
Similar Threads
getX and getY not updated when maximized
Regarding JFrame maximise and minimise
JFrame maximized, display taskbar
Full screen mode in Netbeans