currentPeer.setVisible(true);
currentPeer.show();
  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;        // Avoid NullPointerExceptions by creating a local reference.        ComponentPeer currentPeer=peer;        if (currentPeer != null)            currentPeer.setVisible(true);        // The JDK repaints the component before invalidating the parent.        // So do we.        if (isShowing())        repaint();        // Invalidate the parent if we have one. The component itself must        // not be invalidated. We also avoid NullPointerException with        // a local reference here.        Container currentParent = parent;        if (currentParent != null)            currentParent.invalidate();        ComponentEvent ce =          new ComponentEvent(this,ComponentEvent.COMPONENT_SHOWN);        getToolkit().getSystemEventQueue().postEvent(ce);      }	}