Example usage for java.awt Component invalidate

List of usage examples for java.awt Component invalidate

Introduction

In this page you can find the example usage for java.awt Component invalidate.

Prototype

public void invalidate() 

Source Link

Document

Invalidates this component and its ancestors.

Usage

From source file:org.shaman.rpg.editor.dialog.DialogVisualElement.java

private void recursiveValidate(Component p) {
    if (p instanceof Container) {
        for (Component c : ((Container) p).getComponents()) {
            recursiveValidate(c);//from w w w. java 2  s. co m
        }
    }
    p.invalidate();
    p.validate();
}