Example usage for javax.swing JDialog isResizable

List of usage examples for javax.swing JDialog isResizable

Introduction

In this page you can find the example usage for javax.swing JDialog isResizable.

Prototype

public boolean isResizable() 

Source Link

Document

Indicates whether this dialog is resizable by the user.

Usage

From source file:org.pgptool.gui.ui.tools.DialogViewBaseCustom.java

protected void initWindowGeometryPersister(JDialog dialog, String key) {
    windowGeometryPersister = new WindowGeometryPersisterImpl(dialog, key, uiGeom, scheduledExecutorService);
    if (dialog.isResizable()) {
        if (!windowGeometryPersister.restoreSize()) {
            dialog.pack();//from ww  w  .j a  v a2s  .  c  om
        }
    }
    // if (!windowGeometryPersister.restoreLocation()) {
    UiUtils.centerWindow(dialog);
    // }
}