gs.setShowMapsheets(showMapsheets.getState());
    private void update() {        GUIPreferences gs = GUIPreferences.getInstance();        IClientPreferences cs = PreferenceManager.getClientPreferences();                gs.setMinimapEnabled(minimapEnabled.getState());        gs.setAutoEndFiring(autoEndFiring.getState());        gs.setNagForMASC(nagForMASC.getState());        gs.setNagForPSR(nagForPSR.getState());        gs.setNagForNoAction(nagForNoAction.getState());        gs.setShowMoveStep(animateMove.getState());        gs.setShowWrecks(showWrecks.getState());        gs.setSoundMute(soundMute.getState());        gs.setShowMapHexPopup(showMapHexPopup.getState());        gs.setTooltipDelay(Integer.parseInt(tooltipDelay.getText()));        cs.setUnitStartChar(unitStartChar.getSelectedItem().charAt(0));        gs.setRightDragScroll(rightDragScroll.getState());        gs.setCtlScroll(ctlScroll.getState());        gs.setClickEdgeScroll(clickEdgeScroll.getState());        gs.setAlwaysRightClickScroll(alwaysRightClickScroll.getState());        gs.setAutoEdgeScroll(autoEdgeScroll.getState());        gs.setScrollSensitivity(Integer.parseInt(scrollSensitivity.getText()) );        cs.setMaxPathfinderTime(Integer.parseInt(maxPathfinderTime.getText()));        gs.setGetFocus(getFocus.getState());        cs.setKeepServerlog(keepServerlog.getState());        cs.setServerlogFilename(serverlogFilename.getText());        cs.setServerlogMaxSize(Integer.parseInt(serverlogMaxSize.getText()));        cs.setDefaultAutoejectDisabled(defaultAutoejectDisabled.getState());        cs.setShowUnitId(showUnitId.getState());        cs.setLocale(CommonSettingsDialog.LOCALE_CHOICES[locale.getSelectedIndex()]);                gs.setChatloungeTabs(chatloungeTabs.getState());        this.setVisible( false );    }