Dimension s = Toolkit.getDefaultToolkit().getScreenSize();  setLocation( (int) ( s.getWidth() - getWidth() ) / 2, (int) ( s.getHeight() - getHeight() ) / 2 );
DialogUtil.center(this);
    private void init() {        setModal( true );        getContentPane().add( new AboutPanel(), BorderLayout.CENTER );        setTitle( "About Gallery Remote" );        		        pack();                Dimension s = Toolkit.getDefaultToolkit().getScreenSize();                setLocation( (int) ( s.getWidth() - getWidth() ) / 2, (int) ( s.getHeight() - getHeight() ) / 2 );                addMouseListener(        new java.awt.event.MouseAdapter() {            public void mouseClicked( MouseEvent e ) {                thisWindowClosing();            }        } );        addWindowListener(        new java.awt.event.WindowAdapter() {            public void windowClosing( MouseEvent e ) {                thisWindowClosing();            }        } );    }