This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to open a Maximised Window (urgent) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to open a Maximised Window (urgent)" Watch "How to open a Maximised Window (urgent)" New topic
Author

How to open a Maximised Window (urgent)

Mahua d Dutta
Greenhorn

Joined: Aug 19, 2003
Posts: 3
Hello,
I have a java application showing a window using frame. My query is
I want to open the window in maximised mode.
Can any one plese help me
Thank u in advance....
Mahesh swami
Greenhorn

Joined: Aug 13, 2002
Posts: 26
Hi,
Just Try this,
JFrame frame - new JFrame();
frame.setExtendedState(JFrame.MAXIMIZED_BOTH );
Hope this achieves what u r looking for
-Cheers
Mahua d Dutta
Greenhorn

Joined: Aug 19, 2003
Posts: 3
Hi,
I know the syntax.. but unfortunately it is in jdk1.4 not in 1.3
& I am using 1.3 do u know any other way to do in 1.3?
bye & thanks
Tim Troy
Ranch Hand

Joined: Apr 02, 2003
Posts: 51
Use the following. You may want to adjust the values to account for system trays.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to open a Maximised Window (urgent)
 
Similar Threads
Resolution Idependent JSP page
Resolution Idependent JSP page
Opening WIndow maximised
Browser window size from Applet
OPENING A MAXIMISED WINDOW THROUGH JAVA SCRIPT