pack(); Dimension s = owner.getSize(); setLocation( (int) ( s.getWidth() - getWidth() ) / 2, (int) ( s.getHeight() - getHeight() ) / 2 );
DialogUtil.center(this, owner);
	public PreferencesDialog(Frame owner) {		super(owner, true);		oldProperties = (PropertiesFile) GalleryRemote.getInstance().properties.clone();		try {			jbInit();		} catch(Exception e) {			Log.logException(Log.ERROR, MODULE, e);		}		loadPanes();		jIcons.setSelectedIndex(0);		pack();		Dimension s = owner.getSize();		setLocation( (int) ( s.getWidth() - getWidth() ) / 2, (int) ( s.getHeight() - getHeight() ) / 2 );		setVisible( true );	}