Tuesday, April 2, 2013

Maximizing a window in Java Swing

Java swing maximize window

public void run() {
    MyFrame myFrame = new MyFrame();
    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

Partner Sites




Stuff I use to make videos

Windows notebook - http://amzn.to/2ADOPrW

Apple MacBook Pro - http://amzn.to/2AC0WG2

Microphone - http://amzn.to/2AC1kV0

notebook mouse - http://amzn.to/2BmeZ2d