if (peer != null) peer.setVisible(true); invalidate();
ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.setVisible(true);     Container currentParent = parent; if (currentParent != null) { currentParent.invalidate(); currentParent.repaint(); }
  public void show()  {    // We must set visible before showing the peer.  Otherwise the    // peer could post paint events before visible is true, in which    // case lightweight components are not initially painted --    // Container.paint first calls isShowing () before painting itself    // and its children.    if(!isVisible())      {        this.visible = true;        if (peer != null)          peer.setVisible(true);        invalidate();        ComponentEvent ce =          new ComponentEvent(this,ComponentEvent.COMPONENT_SHOWN);        getToolkit().getSystemEventQueue().postEvent(ce);      }	}