this.add( tooltipDelay );
panSetting.add( tooltipDelay ); panSetting.add( new Label("Tooltip popup delay.") ); this.add( panSetting ); panSetting = new Panel(); unitStartChar = new Choice();  unitStartChar.addItem( "\u0041, \u0042, \u0043, \u0044..." );  unitStartChar.addItem( "\u0391, \u0392, \u0393, \u0394..." );  unitStartChar.addItem( "\u03B1, \u03B2, \u03B3, \u03B4..." ); panSetting.add( unitStartChar ); panSetting.add( new Label("ProtoMech unit codes.") ); this.add( panSetting );
    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.        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 );        Label labelShowMapHexPopup = new Label("Tooltip popup delay:");        this.add( labelShowMapHexPopup );        tooltipDelay            = new TextField(4);        this.add( tooltipDelay );        // 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);    }