List of usage examples for java.awt Container revalidate
public void revalidate()
From source file:fr.duminy.jbackup.swing.ProgressPanel.java
private void removeFromParent() { final Container parent = getParent(); parent.remove(this); parent.revalidate(); }
From source file:fr.duminy.components.swing.form.JFormPane.java
/** * Remove this form from the given parent container. Other components contained by the container won't be removed. * * @param formContainer The new parent container for this form. */// w w w . jav a2s .c om public void removeFrom(Container formContainer) { formContainer.remove(this); formContainer.revalidate(); }
From source file:fr.duminy.components.swing.form.JFormPane.java
/** * Add this form to a the given parent container. <strong>All parent components will be removed</strong> before adding this form to it. * * @param formContainer The new parent container for this form. *///from ww w . ja v a 2 s . c o m public void addTo(Container formContainer) { formContainer.removeAll(); formContainer.add(this, BorderLayout.CENTER); formContainer.revalidate(); }