wood burning stoves*
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
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to open a Maximised Window (urgent)