Java tutorial
//package com.java2s; import java.awt.Container; public class Main { /** * Calls {@link Container#validate()} then {@link Container#repaint()} on * the given {@link Container} to fully reload the Container. * * @param c * - the Container to use * @see Container#repaint() * @see Container#validate() */ public static void validate(Container c) { c.validate(); c.repaint(); } }