w.setVisible (true); w.show();
if (w instanceof Dialog) { System.out.println ("Will 'show'"); w.show(); System.out.println ("Has shown"); } else { w.setVisible (true); }
  public void actionPerformed (ActionEvent evt)  {    Button source = (Button) evt.getSource ();          if (source==closeButton)      {	System.getProperties ().list (System.out);	dispose();	System.exit (0);      }    Window w = (Window) windows.get (source);    if (w.isVisible ())      w.dispose ();    else       {	w.setVisible (true);	w.show();      }  }