Example usage for java.awt Container revalidate

List of usage examples for java.awt Container revalidate

Introduction

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

Prototype

public void revalidate() 

Source Link

Document

Revalidates the component hierarchy up to the nearest validate root.

Usage

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();
}