void function ( Window arg0 , Component arg1 ) { if ( arg1 == null || ! arg1 . isShowing ( ) ) { centerOnScreen ( arg0 ) ; } else { arg0 . setLocationRelativeTo ( arg1 ) ; } }
center the window relative to it 's parent . if the parent is null , or not showing , the window will be centered on the screen concode_field_sep PlaceHolder placeHolder concode_field_sep void centerOnParentAndSetVisible concode_elem_sep void centerOnScreen concode_elem_sep void centerOnScreenAndSetVisible concode_elem_sep Point getCenteringPointOnScreen concode_elem_sep Dimension getDimensionFromPercent concode_elem_sep Dimension calcDimensionFromPercent concode_elem_sep int getScreenWidth concode_elem_sep Dimension getScreenSize concode_elem_sep int getScreenHeight