repaint JComponent - Java Swing

Java examples for Swing:JComponent

Description

repaint JComponent

Demo Code


//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();
    }
}

Related Tutorials