Java JFrame Size resizeApp(JFrame app)

Here you can find the source of resizeApp(JFrame app)

Description

resize App

License

Open Source License

Declaration

public static void resizeApp(JFrame app) 

Method Source Code

//package com.java2s;
/** //from   w  ww  .j  a  v a  2 s. co m
 *  Copyright (C) 2012  Just Do One More
 *  
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program 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 General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import javax.swing.JFrame;

public class Main {
    public static void resizeApp(JFrame app) {
        if (app != null) {
            app.pack();
        }
    }
}

Related

  1. getFrameSize(Component c)
  2. isNormalSizeMode(JFrame window)
  3. locateWindow(JFrame parent, Dimension mySize, Dimension offset, JDialog me)
  4. lockInMinSize(final JFrame frame)
  5. positionFrame(final JFrame frame, final Dimension viewSize, final int addX, final int addY)
  6. restrictWindowMinimumSize(final JInternalFrame frame, final Dimension minSize)
  7. setMinMaxSizeFrame(JFrame frame)
  8. setMinSizeFrame(JFrame frame)
  9. setSizeBasedOnResolution(final JFrame frame)