public void actionPerformed(ActionEvent e) { OptionsDialog od = new OptionsDialog(_this); Dimension appDimension = od.getSize(); Dimension screenSize = _this.getSize(); od.setLocation( (screenSize.width - appDimension.width) / 4, (screenSize.height - appDimension.height) / 4); od.show();
public void actionPerformed(ActionEvent ae) { OptionsManager om = PropertiesManager.getOptionsManager(); om.enableSound(!om.isSoundEnabled()); if (om.isSoundEnabled()) { sound.setIcon(IconManager.getInstance().getIcon("soundon"));
                public void actionPerformed(ActionEvent e) {                    OptionsDialog od = new OptionsDialog(_this);                    Dimension appDimension = od.getSize();                    Dimension screenSize = _this.getSize();                    od.setLocation( (screenSize.width - appDimension.width) / 4,                                   (screenSize.height - appDimension.height) /                                   4);                    od.show();                }