if (peer != null) peer.setVisible(false);
ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.setVisible(false);
  public void hide()  {    if (isVisible())      {        if (peer != null)          peer.setVisible(false);        this.visible = false;        invalidate();        ComponentEvent ce =          new ComponentEvent(this,ComponentEvent.COMPONENT_HIDDEN);        getToolkit().getSystemEventQueue().postEvent(ce);      }	}