Java JFrame maxIt(JFrame jFrame)

Here you can find the source of maxIt(JFrame jFrame)

Description

max It

License

Open Source License

Declaration

public static void maxIt(JFrame jFrame) 

Method Source Code

//package com.java2s;
/*/*from w w  w. j av  a 2 s . com*/
 * Copyright (c) 2009 Albert Kurucz. 
 *
 * This file, Util.java is part of JTStand.
 *
 * JTStand is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * JTStand is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with GTStand.  If not, see <http://www.gnu.org/licenses/>.
 */

import java.awt.Dimension;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;

import javax.swing.JFrame;

public class Main {
    public static void maxIt(JFrame jFrame) {
        GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
        Rectangle r = env.getMaximumWindowBounds();
        Dimension d = r.getSize();
        jFrame.setSize(d);
        jFrame.setPreferredSize(d);
    }
}

Related

  1. makeShaped(final JFrame frame)
  2. makeTrans(JFrame frmDisks, float f)
  3. maxamiseWindow(JFrame window)
  4. maximizeJFrame(JFrame f)
  5. maximizeWindow(JFrame window)
  6. messageDialog(String string, JFrame parentFrame)
  7. metalLookAndFeel(JFrame appFrame)
  8. minimize(JFrame frame)
  9. msgBox(JFrame frame, String title, String message)