if (v == true) fireAncestorEvent(this, AncestorEvent.ANCESTOR_ADDED); else fireAncestorEvent(this, AncestorEvent.ANCESTOR_REMOVED);
  public void setVisible(boolean v)  {    // No need to do anything if the actual value doesn't change.    if (isVisible() == v)      return;    super.setVisible(v);    Container parent = getParent();    if (parent != null)      parent.repaint(getX(), getY(), getWidth(), getHeight());    revalidate();  }