OptionsManager om = PropertiesManager.getOptionsManager(); om.enableSound(!om.isSoundEnabled()); if (om.isSoundEnabled()) { sound.setIcon(IconManager.getInstance().getIcon("soundon"));
if (memoryMonitorDialog == null) { memoryMonitorDialog = new MemoryMonitorDialog( AppleJuiceDialog.this); Point loc = memory.getLocationOnScreen(); loc.setLocation(loc.getX() - memoryMonitorDialog.getWidth(), loc.getY() - memoryMonitorDialog.getHeight()); memoryMonitorDialog.setLocation(loc);
            public void actionPerformed(ActionEvent ae) {                OptionsManager om = PropertiesManager.getOptionsManager();                om.enableSound(!om.isSoundEnabled());                if (om.isSoundEnabled()) {                    sound.setIcon(IconManager.getInstance().getIcon("soundon"));                }                else {                    sound.setIcon(IconManager.getInstance().getIcon("soundoff"));                }            }