invalidate(); RepaintManager.currentManager(this).addInvalidComponent(this);
if (! EventQueue.isDispatchThread()) SwingUtilities.invokeLater(new Runnable() { public void run() { revalidate(); } }); else { invalidate(); RepaintManager.currentManager(this).addInvalidComponent(this); }
  public void revalidate()  {    invalidate();    RepaintManager.currentManager(this).addInvalidComponent(this);  }