this.add( soundMute );
tempPanel.add( soundMute );
    public CommonSettingsDialog( Frame owner) {        // Initialize our superclass with a title.        super( owner, "Client Settings" );        // Lay out this dialog.        this.setLayout( new GridLayout(0, 1) );        // Add the setting controls.        Panel panSetting;        minimapEnabled            = new Checkbox( "The minimap can be shown." );        this.add( minimapEnabled );                autoEndFiring            = new Checkbox( "Skip 'Done' when firing all weapons." );        this.add( autoEndFiring );                nagForMASC            = new Checkbox( "Confirm all movement that uses MASC." );        this.add( nagForMASC );                nagForPSR            = new Checkbox( "Confirm all movement that requires a PSR." );        this.add( nagForPSR );                nagForNoAction            = new Checkbox( "Confirm done when no movement/firing/physicals declared." );        this.add( nagForNoAction );                animateMove            = new Checkbox( "Animate movement." );        this.add( animateMove );                showWrecks            = new Checkbox( "Show wrecks." );        this.add( showWrecks );                soundMute            = new Checkbox( "Mute sound." );        this.add( soundMute );                showMapHexPopup            = new Checkbox( "Show map hex popup." );        this.add( showMapHexPopup );        panSetting = new Panel();        tooltipDelay            = new TextField(4);        panSetting.add( tooltipDelay );        panSetting.add( new Label("Tooltip popup delay.") );        this.add( panSetting );        panSetting = new Panel();        unitStartChar            = new Choice();        // Add option for "A, B, C, D..."        unitStartChar.addItem( "\u0041, \u0042, \u0043, \u0044..." );        // Add option for "ALPHA, BETA, GAMMA, DELTA..."        unitStartChar.addItem( "\u0391, \u0392, \u0393, \u0394..." );        // Add option for "alpha, beta, gamma, delta..."        unitStartChar.addItem( "\u03B1, \u03B2, \u03B3, \u03B4..." );        panSetting.add( unitStartChar );        panSetting.add( new Label("ProtoMech unit codes.") );        this.add( panSetting );        panSetting = new Panel();        shiftScrollSensitivity            = new TextField(4);        panSetting.add( shiftScrollSensitivity );        panSetting.add( new Label("Shift-Scroll sensitivity.") );        this.add( panSetting );        explicitScrollOnly            = new Checkbox( "Only scroll using Shift key and MiniMap." );        this.add( explicitScrollOnly );        alwaysScrollOnRightClick            = new Checkbox( "Right click always scrolls the map." );        this.add( alwaysScrollOnRightClick );        panSetting = new Panel();        maxPathfinderTime            = new TextField(5);        panSetting.add( maxPathfinderTime );        panSetting.add( new Label("Pathfinder time limit (milliseconds).") );        this.add( panSetting );        // Add the dialog controls.        Panel buttons = new Panel();        buttons.setLayout( new GridLayout(1, 0) );        buttons.add( new Label() );        Button update = new Button( "Update" );        update.setActionCommand( CommonSettingsDialog.UPDATE );        update.addActionListener( this );        buttons.add( update );        buttons.add( new Label() );        Button cancel = new Button( "Cancel" );        cancel.setActionCommand( CommonSettingsDialog.CANCEL );        cancel.addActionListener( this );        buttons.add( cancel );        buttons.add( new Label() );        this.add( buttons );        // Close this dialog when the window manager says to.        addWindowListener(new WindowAdapter() {	    public void windowClosing(WindowEvent e) { cancel(); }	});        // Center this dialog.        pack();        setResizable(false);        setLocation(owner.getLocation().x + owner.getSize().width/2 - getSize().width/2,                    owner.getLocation().y + owner.getSize().height/2 - getSize().height/2);    }