private void initialize() {
		this.setVisible(false);
		this.setIconImages(DisplayUtils.getZapIconImages());
		this.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
	    if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
	    	this.setSize(300,200);
	    }
		this.setTitle(Constant.PROGRAM_NAME);
		
        //  Handle escape key to close the dialog    
        KeyStroke escape = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false);
        AbstractAction escapeAction = new AbstractAction() {
			private static final long serialVersionUID = 3516424501887406165L;
			@Override
            public void actionPerformed(ActionEvent e) {
				dispatchEvent(new WindowEvent(AbstractDialog.this, WindowEvent.WINDOW_CLOSING));
            }
        };
        getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(escape, "ESCAPE");
        getRootPane().getActionMap().put("ESCAPE",escapeAction);
	}
private void initialize ( ) { this . setVisible ( false ) ; this . setIconImages ( DisplayUtils . getZapIconImages ( ) ) ; this . setDefaultCloseOperation ( javax . swing . WindowConstants . DISPOSE_ON_CLOSE ) ; if ( Model . getSingleton ( ) . getOptionsParam ( ) . getViewParam ( ) . getWmUiHandlingOption ( ) == 0 ) { this . setSize ( 300 , 200 ) ; } this . setTitle ( Constant . PROGRAM_NAME ) ; KeyStroke escape = KeyStroke . getKeyStroke ( KeyEvent . VK_ESCAPE , 0 , false ) ; AbstractAction escapeAction = new AbstractAction ( ) { private static final long serialVersionUID = 3516424501887406165L ; @ Override public void actionPerformed ( ActionEvent e ) { dispatchEvent ( new WindowEvent ( AbstractDialog . this , WindowEvent . WINDOW_CLOSING ) ) ; } } ; getRootPane ( ) . getInputMap ( JComponent . WHEN_IN_FOCUSED_WINDOW ) . put ( escape , "ESCAPE" ) ; getRootPane ( ) . getActionMap ( ) . put ( "ESCAPE" , escapeAction ) ; }
This method initializes this