518519520521522523524525526
public void repaint() { if (isDisplayed() == false) return; PaintEvent evt = new PaintEvent(this, getBounds()); EventQueue queue = Toolkit.getDefaultToolkit().getSystemEventQueue(); queue.postEvent(evt); }