Java JFrame Size setMinSizeFrame(JFrame frame)

Here you can find the source of setMinSizeFrame(JFrame frame)

Description

set Min Size Frame

License

Apache License

Declaration

public static void setMinSizeFrame(JFrame frame)

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.*;
import java.awt.*;

public class Main {

    public static void setMinSizeFrame(JFrame frame) {
        Dimension dimension = frame.getSize();
        frame.pack();//from  www.  j av a  2 s  .c o m
        frame.setMinimumSize(frame.getSize());
        frame.setSize(dimension);
    }
}

Related

  1. lockInMinSize(final JFrame frame)
  2. positionFrame(final JFrame frame, final Dimension viewSize, final int addX, final int addY)
  3. resizeApp(JFrame app)
  4. restrictWindowMinimumSize(final JInternalFrame frame, final Dimension minSize)
  5. setMinMaxSizeFrame(JFrame frame)
  6. setSizeBasedOnResolution(final JFrame frame)
  7. setSizeWithinScreen(JFrame frame, int preferredWidth, int preferredHeight)
  8. showSplashWindow(String message, Font messageFont, int duration, Dimension windowSize, Window frameOwner)