question: 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 ( ) ; }
target:  Show window: de-iconify and bring it to front