Example usage for java.awt Frame setResizable

List of usage examples for java.awt Frame setResizable

Introduction

In this page you can find the example usage for java.awt Frame setResizable.

Prototype

public void setResizable(boolean resizable) 

Source Link

Document

Sets whether this frame is resizable by the user.

Usage

From source file:Main.java

public static void main() {
    Frame frame = new Frame();
    frame.setResizable(false);

    boolean resizable = frame.isResizable();
}

From source file:Main.java

private static void doSetResizableInEDT(final Frame frame, final boolean isResizable) {
    frame.setResizable(isResizable);
}

From source file:Main.java

public static void setResizable(final Frame frame, final boolean isResizable) {
    if (frame != null) {
        runInEDT(() -> frame.setResizable(isResizable));
    }//from   w  ww . j  a  v  a 2  s .  c  o m
}