@Override
  public synchronized void removeInvalidComponent(JComponent component) {
    checkThreadViolations(component);
    super.removeInvalidComponent(component);
  }
@Override
  public synchronized void removeInvalidComponent(JComponent component)