Tuesday, April 2, 2013

Maximizing a window in Java Swing

10:36 AM

Java swing maximize window


public void run() {
MyFrame myFrame = new MyFrame();
myFrame.setVisible(true);
myFrame.setExtendedState(myFrame.getExtendedState() | JFrame.MAXIMIZED_BOTH);
}

The above code will work Provided that you are extending  the JFrame













------------------------------------------------------------------------------------------
Searches related to java swing maximize window java jframe maximize window java maximize frame java close jframe jframe close jframe resize center jframe close a jframe on clicking a button center jframe on screen.How to maximize a JFrame

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top