c.weightx = 1.0;    c.weighty = 0.0;
c.weightx = 1.0;    c.weighty = 1.0;
    public WeaponPanel() {        super(new GridBagLayout());                    // weapon list        weaponList = new java.awt.List(4, false);        weaponList.addItemListener(this);                    // weapon display panel        wNameL = new Label("Name", Label.LEFT);        wHeatL = new Label("Heat", Label.CENTER);        wDamL = new Label("Damage", Label.CENTER);        wNameR = new Label("", Label.LEFT);        wHeatR = new Label("--", Label.CENTER);        wDamR = new Label("--", Label.CENTER);                    displayP = new Panel(new GridBagLayout());                    GridBagConstraints c = new GridBagConstraints();        c.fill = GridBagConstraints.BOTH;        c.insets = new Insets(1, 1, 1, 1);                c.gridwidth = 1;                    c.weightx = 1.0;    c.weighty = 0.0;        ((GridBagLayout)displayP.getLayout()).setConstraints(wNameL, c);        displayP.add(wNameL);                c.weightx = 0.0;    c.weighty = 0.0;        ((GridBagLayout)displayP.getLayout()).setConstraints(wHeatL, c);        displayP.add(wHeatL);                    c.gridwidth = GridBagConstraints.REMAINDER;                    ((GridBagLayout)displayP.getLayout()).setConstraints(wDamL, c);        displayP.add(wDamL);                c.gridwidth = 1;                    c.weightx = 1.0;    c.weighty = 0.0;        ((GridBagLayout)displayP.getLayout()).setConstraints(wNameR, c);        displayP.add(wNameR);                c.weightx = 0.0;    c.weighty = 0.0;        ((GridBagLayout)displayP.getLayout()).setConstraints(wHeatR, c);        displayP.add(wHeatR);                    c.gridwidth = GridBagConstraints.REMAINDER;                    ((GridBagLayout)displayP.getLayout()).setConstraints(wDamR, c);        displayP.add(wDamR);                // range panel        wMinL = new Label("Min", Label.CENTER);        wShortL = new Label("Short", Label.CENTER);        wMedL = new Label("Med", Label.CENTER);        wLongL = new Label("Long", Label.CENTER);        wMinR = new Label("---", Label.CENTER);        wShortR = new Label("---", Label.CENTER);        wMedR = new Label("---", Label.CENTER);        wLongR = new Label("---", Label.CENTER);                    rangeP = new Panel(new GridLayout(2, 4));        rangeP.add(wMinL);        rangeP.add(wShortL);        rangeP.add(wMedL);        rangeP.add(wLongL);        rangeP.add(wMinR);        rangeP.add(wShortR);        rangeP.add(wMedR);        rangeP.add(wLongR);                    // target panel        wTargetL = new Label("Target:");        wRangeL = new Label("Range:");        wToHitL = new Label("To Hit:");                    wTargetR = new Label("---");        wRangeR = new Label("---");        wToHitR = new Label("---");                    targetP = new Panel(new GridLayout(3, 2));        targetP.add(wTargetL);        targetP.add(wTargetR);        targetP.add(wRangeL);        targetP.add(wRangeR);        targetP.add(wToHitL);        targetP.add(wToHitR);                    // to-hit text        toHitText = new TextArea("", 4, 20, TextArea.SCROLLBARS_VERTICAL_ONLY);        toHitText.setEditable(false);                    // button panel        ammoB = new Button("Change Ammo");        ammoB.setEnabled(false);                    buttonP = new Panel();        buttonP.add(ammoB);                                // layout main panel        c = new GridBagConstraints();        c.fill = GridBagConstraints.BOTH;        c.insets = new Insets(1, 1, 1, 1);                c.weightx = 1.0;    c.weighty = 0.0;        c.gridwidth = GridBagConstraints.REMAINDER;        ((GridBagLayout)getLayout()).setConstraints(weaponList, c);        add(weaponList);                ((GridBagLayout)getLayout()).setConstraints(displayP, c);        add(displayP);                ((GridBagLayout)getLayout()).setConstraints(rangeP, c);        add(rangeP);                c.weightx = 1.0;    c.weighty = 0.0;        ((GridBagLayout)getLayout()).setConstraints(targetP, c);        add(targetP);                        c.weightx = 1.0;    c.weighty = 1.0;        ((GridBagLayout)getLayout()).setConstraints(toHitText, c);        add(toHitText);                        /*        c.weightx = 1.0;    c.weighty = 0.0;        ((GridBagLayout)getLayout()).setConstraints(buttonP, c);        add(buttonP);        */    }