Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to open a Maximised Window (urgent)

 
Mahua d Dutta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the following. You may want to adjust the values to account for system trays.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic