locList = new List(8, false); locList.addItemListener(this);
locList = new JList(new DefaultListModel()); locList.addListSelectionListener(this);
        SystemPanel() {            locLabel = new JLabel(Messages.getString("MechDisplay.Location"), JLabel.CENTER); //$NON-NLS-1$            locLabel.setOpaque(true);            slotLabel = new JLabel(Messages.getString("MechDisplay.Slot"), JLabel.CENTER); //$NON-NLS-1$            slotLabel.setOpaque(true);            locList = new List(8, false);            locList.addItemListener(this);            locList.addKeyListener(clientgui.menuBar);            slotList = new List(12, false);            slotList.addItemListener(this);            slotList.addKeyListener(clientgui.menuBar);            //slotList.setEnabled(false);            m_chMode = new JComboBox();            m_chMode.addItem("   "); //$NON-NLS-1$            m_chMode.setEnabled(false);            m_chMode.addItemListener(this);            m_chMode.addKeyListener(clientgui.menuBar);            m_bDumpAmmo = new JButton(Messages.getString("MechDisplay.m_bDumpAmmo")); //$NON-NLS-1$            m_bDumpAmmo.setEnabled(false);            m_bDumpAmmo.setActionCommand("dump"); //$NON-NLS-1$            m_bDumpAmmo.addActionListener(this);            m_bDumpAmmo.addKeyListener(clientgui.menuBar);            modeLabel = new JLabel(Messages.getString("MechDisplay.modeLabel"), JLabel.RIGHT); //$NON-NLS-1$            modeLabel.setOpaque(true);            //modeLabel.setEnabled(false);            // layout main panel            GridBagLayout gridbag = new GridBagLayout();            GridBagConstraints c = new GridBagConstraints();            setLayout(gridbag);            c.fill = GridBagConstraints.BOTH;            c.insets = new Insets(15, 9, 1, 1);            c.gridy = 0;            c.gridx = 0;            c.weightx = 0.5;            c.weighty = 0.0;            c.gridwidth = 1;            c.gridheight = 1;            gridbag.setConstraints(locLabel, c);            add(locLabel);            c.weightx = 0.0;            c.gridy = 0;            c.gridx = 1;            c.gridwidth = GridBagConstraints.REMAINDER;            c.insets = new Insets(15, 1, 1, 9);            gridbag.setConstraints(slotLabel, c);            add(slotLabel);            c.weightx = 0.5;            //c.weighty = 1.0;            c.gridy = 1;            c.gridx = 0;            c.gridwidth = 1;            c.insets = new Insets(1, 9, 15, 1);            c.gridheight = GridBagConstraints.REMAINDER;            gridbag.setConstraints(locList, c);            add(locList);            c.gridwidth = GridBagConstraints.REMAINDER;            c.gridheight = 1;            c.gridy = 1;            c.gridx = 1;            c.weightx = 0.0;            c.weighty = 1.0;            c.insets = new Insets(1, 1, 1, 9);            gridbag.setConstraints(slotList, c);            add(slotList);            c.gridwidth = 1;            c.gridy = 2;            c.gridx = 1;            c.weightx = 0.0;            c.weighty = 0.0;            gridbag.setConstraints(modeLabel, c);            c.insets = new Insets(1, 1, 1, 1);            add(modeLabel);            c.weightx = 1.0;            c.gridwidth = GridBagConstraints.REMAINDER;            c.gridy = 2;            c.gridx = 2;            c.insets = new Insets(1, 1, 1, 9);            gridbag.setConstraints(m_chMode, c);            add(m_chMode);            c.gridwidth = GridBagConstraints.REMAINDER;            c.gridheight = GridBagConstraints.REMAINDER;            c.gridy = 3;            c.gridx = 1;            c.insets = new Insets(4, 4, 15, 9);            gridbag.setConstraints(m_bDumpAmmo, c);            add(m_bDumpAmmo);            setBackGround();        }