private void setupWizard ( ) { setupComponents ( ) ; layoutComponents ( ) ; setMinimumSize ( defaultminimumSize ) ; // Center on screen Dimension screenSize = Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ; int xPosition = ( screenSize . width / 2 ) - ( defaultminimumSize . width / 2 ) ; int yPosition = ( screenSize . height / 2 ) - ( defaultminimumSize . height / 2 ) ; setLocation ( xPosition , yPosition ) ; setDefaultCloseOperation ( JFrame . DISPOSE_ON_CLOSE ) ; }
Sets up wizard upon construction .