Example usage for java.awt Container setSize

List of usage examples for java.awt Container setSize

Introduction

In this page you can find the example usage for java.awt Container setSize.

Prototype

public void setSize(Dimension d) 

Source Link

Document

Resizes this component so that it has width d.width and height d.height .

Usage

From source file:org.openmicroscopy.shoola.agents.metadata.editor.PropertiesUI.java

/** Resets the size of the components hosting this component.*/
private void resetComponentSize() {
    Container pane = getComponent(getParent());
    pane.setSize(getPreferredSize());
    pane.validate();/*w w  w  . j  ava  2s. com*/
    pane.repaint();
}