public static void showWindow(Window window){
  window.setVisible(true);
  if (window instanceof Frame) {
    Frame f=(Frame)window;
    int state=f.getExtendedState();
    if ((state & Frame.ICONIFIED) > 0)     f.setExtendedState(state & ~Frame.ICONIFIED);
  }
  window.toFront();
}

public static void showWindow ( Window window ) { window . setVisible ( true ) ; if ( window instanceof Frame ) { Frame f = ( Frame ) window ; int state = f . getExtendedState ( ) ; if ( ( state & Frame . ICONIFIED ) > 0 ) f . setExtendedState ( state & ~ Frame . ICONIFIED ) ; } window . toFront ( ) ; }
show window : de - iconify and bring it to front
