List of usage examples for java.awt Container setSize
public void setSize(Dimension d)
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(); }