Java examples for Swing:JComponent
repaint JComponent
//package com.java2s; import javax.swing.JComponent; public class Main { public static void repaint(JComponent comp) { comp.validate();// ww w . j a v a2 s . c o m comp.repaint(); } }