this.owner = owner;
    public WeaponPanel(ClientGUI client) {        super(new GridBagLayout());        this.client = client;        FontMetrics fm = getFontMetrics(FONT_VALUE);        Color clr = Color.white;        // weapon list        weaponList = new java.awt.List(4, false);        weaponList.addItemListener(this);        weaponList.addKeyListener(client.menuBar);        // layout main panel        GridBagConstraints c = new GridBagConstraints();        //adding Weapon List        c.fill = GridBagConstraints.BOTH;        c.insets = new Insets(15, 9, 1, 9);        c.weightx = 0.0;    c.weighty = 1.0;        c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout)getLayout()).setConstraints(weaponList, c);        add(weaponList);        //adding Ammo choice + label        wAmmo = new TransparentLabel(Messages.getString("MechDisplay.Ammo"), fm, clr, TransparentLabel.LEFT); //$NON-NLS-1$        m_chAmmo = new Choice();        m_chAmmo.addItemListener(this);        m_chAmmo.addKeyListener(client.menuBar);        c.insets = new Insets(1, 9, 1, 1);        c.gridwidth = 1;        c.weighty = 0.0;        c.fill = GridBagConstraints.NONE;        ((GridBagLayout)getLayout()).setConstraints(wAmmo, c);        add(wAmmo);        c.insets = new Insets(1, 1, 1, 9);        c.gridwidth = GridBagConstraints.REMAINDER;        c.gridx = 1;        c.fill = GridBagConstraints.HORIZONTAL;        ((GridBagLayout)getLayout()).setConstraints(m_chAmmo, c);        add(m_chAmmo);        //Adding Heat Buildup        currentHeatBuildupL = new TransparentLabel(Messages.getString("MechDisplay.HeatBuildup"), fm, clr, TransparentLabel.RIGHT); //$NON-NLS-1$        currentHeatBuildupR = new TransparentLabel("--", fm, clr, TransparentLabel.LEFT); //$NON-NLS-1$        c.insets = new Insets(2, 9, 2, 1);        c.gridwidth = 2; c.gridx = 0;        c.fill = GridBagConstraints.NONE;        c.anchor = GridBagConstraints.EAST;        ((GridBagLayout)getLayout()).setConstraints(currentHeatBuildupL, c);        add(currentHeatBuildupL);        c.insets = new Insets(2, 1, 2, 9);        c.gridwidth = GridBagConstraints.REMAINDER;        c.gridx = 2;        c.anchor = GridBagConstraints.WEST;        //c.fill = GridBagConstraints.HORIZONTAL;        ((GridBagLayout)getLayout()).setConstraints(currentHeatBuildupR, c);        add(currentHeatBuildupR);        //Adding weapon display labels        wNameL = new TransparentLabel(Messages.getString("MechDisplay.Name"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wHeatL = new TransparentLabel(Messages.getString("MechDisplay.Heat"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wDamL =  new TransparentLabel(Messages.getString("MechDisplay.Damage"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wNameR = new TransparentLabel("", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wHeatR = new TransparentLabel("--", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wDamR =  new TransparentLabel("--", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$         c.anchor = GridBagConstraints.CENTER;        c.fill = GridBagConstraints.BOTH;        c.insets = new Insets(2, 9, 1, 1);        c.gridwidth = 2; c.gridx = 0;        ((GridBagLayout)getLayout()).setConstraints(wNameL, c);        add(wNameL);        c.insets = new Insets(2, 1, 1, 1);        c.gridwidth = 1; c.gridx = 2;        ((GridBagLayout)getLayout()).setConstraints(wHeatL, c);        add(wHeatL);        c.insets = new Insets(2, 1, 1, 9);        c.gridwidth = GridBagConstraints.REMAINDER;        c.gridx = 3;        ((GridBagLayout)getLayout()).setConstraints(wDamL, c);        add(wDamL);        c.insets = new Insets(1, 9, 2, 1);        c.gridwidth = 2;        c.gridx = 0; c.gridy = 4;        ((GridBagLayout)getLayout()).setConstraints(wNameR, c);        add(wNameR);        c.gridwidth = 1;        c.gridx = 2;        ((GridBagLayout) getLayout()).setConstraints(wHeatR, c);        add(wHeatR);        c.insets = new Insets(1, 1, 2, 9);        c.gridx = 3;        c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout) getLayout()).setConstraints(wDamR, c);        add(wDamR);        // Adding range labels        wMinL = new TransparentLabel(Messages.getString("MechDisplay.Min"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wShortL = new TransparentLabel(Messages.getString("MechDisplay.Short"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wMedL = new TransparentLabel(Messages.getString("MechDisplay.Med"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wLongL = new TransparentLabel(Messages.getString("MechDisplay.Long"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wExtL = new TransparentLabel(Messages.getString("MechDisplay.Ext"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wMinR = new TransparentLabel("---", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wShortR = new TransparentLabel("---", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wMedR = new TransparentLabel("---", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wLongR = new TransparentLabel("---", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wExtR = new TransparentLabel("---", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$                c.weightx = 1.0;        c.insets = new Insets(2, 9, 1, 1);        c.gridx = 0; c.gridy = 5; c.gridwidth = 1;        ((GridBagLayout) getLayout()).setConstraints(wMinL, c);        add(wMinL);        c.insets = new Insets(2, 1, 1, 1);        c.gridx = 1; c.gridy = 5;        ((GridBagLayout) getLayout()).setConstraints(wShortL, c);        add(wShortL);        c.gridx = 2; c.gridy = 5;        ((GridBagLayout) getLayout()).setConstraints(wMedL, c);        add(wMedL);        //         c.insets = new Insets(2, 1, 1, 9);        c.gridx = 3; c.gridy = 5;//  c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout) getLayout()).setConstraints(wLongL, c);        add(wLongL);                c.insets = new Insets(2, 1, 1, 9);        c.gridx = 4; c.gridy = 5;        c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout) getLayout()).setConstraints(wExtL, c);        add(wExtL);        //----------------         c.insets = new Insets(1, 9, 2, 1);        c.gridx = 0; c.gridy = 6; c.gridwidth = 1;        ((GridBagLayout) getLayout()).setConstraints(wMinR, c);        add(wMinR);        c.insets = new Insets(1, 1, 2, 1);        c.gridx = 1; c.gridy = 6;        ((GridBagLayout) getLayout()).setConstraints(wShortR, c);        add(wShortR);        c.gridx = 2; c.gridy = 6;        ((GridBagLayout) getLayout()).setConstraints(wMedR, c);        add(wMedR);//         c.insets = new Insets(1, 1, 2, 9);        c.gridx = 3; c.gridy = 6;//  c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout) getLayout()).setConstraints(wLongR, c);        add(wLongR);                        c.insets = new Insets(1, 1, 2, 9);        c.gridx = 4; c.gridy = 6;        ((GridBagLayout) getLayout()).setConstraints(wExtR, c);        add(wExtR);                            // target panel        wTargetL = new TransparentLabel(Messages.getString("MechDisplay.Target"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wRangeL = new TransparentLabel(Messages.getString("MechDisplay.Range"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wToHitL = new TransparentLabel(Messages.getString("MechDisplay.ToHit"), fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wTargetR = new TransparentLabel("---", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wRangeR = new TransparentLabel("---", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        wToHitR = new TransparentLabel("---", fm, clr, TransparentLabel.CENTER); //$NON-NLS-1$        c.weightx = 0.0;        c.insets = new Insets(2, 9, 1, 1);        c.gridx = 0; c.gridy = 7; c.gridwidth = 1;        ((GridBagLayout) getLayout()).setConstraints(wTargetL, c);        add(wTargetL);        c.insets = new Insets(2, 1, 1, 9);        c.gridx = 1; c.gridy = 7; c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout) getLayout()).setConstraints(wTargetR, c);        add(wTargetR);        c.insets = new Insets(1, 9, 1, 1);        c.gridx = 0; c.gridy = 8; c.gridwidth = 1;        ((GridBagLayout) getLayout()).setConstraints(wRangeL, c);        add(wRangeL);        c.insets = new Insets(1, 1, 1, 9);        c.gridx = 1; c.gridy = 8; c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout) getLayout()).setConstraints(wRangeR, c);        add(wRangeR);        c.insets = new Insets(1, 9, 1, 1);        c.gridx = 0; c.gridy = 9; c.gridwidth = 1;        ((GridBagLayout) getLayout()).setConstraints(wToHitL, c);        add(wToHitL);        c.insets = new Insets(1, 1, 1, 9);        c.gridx = 1; c.gridy = 9; c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout) getLayout()).setConstraints(wToHitR, c);        add(wToHitR);        // to-hit text        toHitText = new TextArea("", 2, 20, TextArea.SCROLLBARS_VERTICAL_ONLY); //$NON-NLS-1$        toHitText.setEditable(false);        toHitText.addKeyListener(client.menuBar);        c.insets = new Insets(1, 9, 15, 9);        c.gridx = 0; c.gridy = 10; c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout) getLayout()).setConstraints(toHitText, c);        add(toHitText);        setBackGround();    }