force Component Repaint - Java java.awt

Java examples for java.awt:Component

Description

force Component Repaint

Demo Code


//package com.java2s;

import java.awt.*;

public class Main {
    public static void forceRepaint(Component component) {
        component.revalidate();/*from   ww w  .ja v  a2  s  .co  m*/
        component.repaint();
    }
}

Related Tutorials