if (isVisible() == v) return;
  public void setVisible(boolean v)  {    super.setVisible(v);    Container parent = getParent();    if (parent != null)      parent.repaint(getX(), getY(), getWidth(), getHeight());    revalidate();  }