butSearchlight = new Button(Messages.getString("FiringDisplay.Searchlight")); butSearchlight.addActionListener(this); butSearchlight.addKeyListener(this); butSearchlight.setActionCommand(FIRE_SEARCHLIGHT); butSearchlight.setEnabled(false);
    public FiringDisplay(ClientGUI clientgui) {        this.client = clientgui.getClient();        this.clientgui = clientgui;        client.game.addGameListener(this);                clientgui.getBoardView().addBoardViewListener(this);                shiftheld = false;            // fire        attacks = new Vector();        setupStatusBar(Messages.getString("FiringDisplay.waitingForFiringPhase")); //$NON-NLS-1$                butFire = new Button(Messages.getString("FiringDisplay.Fire")); //$NON-NLS-1$        butFire.addActionListener(this);        butFire.addKeyListener(this);        butFire.setActionCommand(FIRE_FIRE);        butFire.setEnabled(false);                butSkip = new Button(Messages.getString("FiringDisplay.Skip")); //$NON-NLS-1$        butSkip.addActionListener(this);        butSkip.addKeyListener(this);        butSkip.setActionCommand(FIRE_SKIP);        butSkip.setEnabled(false);                butTwist = new Button(Messages.getString("FiringDisplay.Twist")); //$NON-NLS-1$        butTwist.addActionListener(this);        butTwist.addKeyListener(this);        butTwist.setActionCommand(FIRE_TWIST);        butTwist.setEnabled(false);                butFindClub = new Button(Messages.getString("FiringDisplay.FindClub")); //$NON-NLS-1$        butFindClub.addActionListener(this);        butFindClub.addKeyListener(this);        butFindClub.setActionCommand(FIRE_FIND_CLUB);        butFindClub.setEnabled(false);                butNextTarg = new Button(Messages.getString("FiringDisplay.NextTarget")); //$NON-NLS-1$        butNextTarg.addActionListener(this);        butNextTarg.addKeyListener(this);        butNextTarg.setActionCommand(FIRE_NEXT_TARG);        butNextTarg.setEnabled(false);                butFlipArms = new Button(Messages.getString("FiringDisplay.FlipArms")); //$NON-NLS-1$        butFlipArms.addActionListener(this);        butFlipArms.addKeyListener(this);        butFlipArms.setActionCommand(FIRE_FLIP_ARMS);        butFlipArms.setEnabled(false);                butSpot = new Button(Messages.getString("FiringDisplay.Spot")); //$NON-NLS-1$        butSpot.addActionListener(this);        butSpot.addKeyListener(this);        butSpot.setActionCommand(FIRE_SPOT);        butSpot.setEnabled(false);                butSpace = new Button("."); //$NON-NLS-1$        butSpace.setEnabled(false);        // Fire Mode - Adding a Fire Mode Button to the 2nd Menu - Rasia        butFireMode = new Button(Messages.getString("FiringDisplay.Mode")); //$NON-NLS-1$        butFireMode.addActionListener(this);        butFireMode.addKeyListener(this);        butFireMode.setActionCommand(FIRE_MODE);        butFireMode.setEnabled(false);        butDone = new Button(Messages.getString("FiringDisplay.Done")); //$NON-NLS-1$        butDone.addActionListener(this);        butDone.addKeyListener(this);        butDone.setEnabled(false);                butNext = new Button(Messages.getString("FiringDisplay.NextUnit")); //$NON-NLS-1$        butNext.addActionListener(this);        butNext.addKeyListener(this);        butNext.setActionCommand(FIRE_NEXT);        butNext.setEnabled(false);                butMore = new Button(Messages.getString("FiringDisplay.More")); //$NON-NLS-1$        butMore.addActionListener(this);        butMore.addKeyListener(this);        butMore.setActionCommand(FIRE_MORE);        butMore.setEnabled(false);                // layout button grid        panButtons = new Panel();        buttonLayout = 0;        setupButtonPanel();                // layout screen        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        setLayout(gridbag);                c.fill = GridBagConstraints.BOTH;        c.weightx = 1.0;    c.weighty = 1.0;        c.insets = new Insets(1, 1, 1, 1);//         c.gridwidth = GridBagConstraints.REMAINDER;//         addBag(clientgui.bv, gridbag, c);//         c.weightx = 1.0;    c.weighty = 0;//         c.gridwidth = 1;//         addBag(client.cb.getComponent(), gridbag, c);        c.gridwidth = GridBagConstraints.REMAINDER;        c.weightx = 0.0;    c.weighty = 0.0;        addBag(panButtons, gridbag, c);        c.weightx = 1.0;    c.weighty = 0.0;        c.gridwidth = GridBagConstraints.REMAINDER;        addBag(panStatus, gridbag, c);                clientgui.bv.addKeyListener( this );        addKeyListener(this);                // mech display.        clientgui.mechD.wPan.weaponList.addItemListener(this);        clientgui.mechD.wPan.weaponList.addKeyListener(this);        ash = new AimedShotHandler();        }