List of usage examples for java.awt Component revalidate
public void revalidate()
Source Link
From source file:Main.java
public static void forceRepaint(Component component) { component.revalidate(); component.repaint(); }