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
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: 1141

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
It's not a secret anymore!