lowerLeft.add(getLabeledComponent("Cost:",
lowerLeft.add(getLabeledComponent("Cost (0 to make unsellable and undroppable:",
    protected void init()    {        readFromRom();        initLabels();        mainWindow = createBaseWindow(this);        mainWindow.setTitle(this.getDescription());        mainWindow.setIconImage(((ImageIcon) this.getIcon()).getImage());        //mainWindow.setSize(400, 320);        mainWindow.setResizable(false);        JPanel itemStats = new JPanel();        itemStats.setLayout(new BoxLayout(itemStats, BoxLayout.Y_AXIS));        JPanel upper = new JPanel();        upper.setLayout(new GridLayout(3, 2));        //		upper.add(new JLabel("Item:"));        itemSelector = createItemComboBox(this, this);        itemSelector.setActionCommand("itemSelect");        JButton searchb = new JButton("Find");        searchb.addActionListener(this);        mainWindow.getContentPane().add(            new JSearchableComboBox(itemSelector, "Item: "),            //			pairComponents(            //				pairComponents(search = new JTextField(10), searchb, true),            //				getLabeledComponent("Item:", itemSelector),            //				true),            BorderLayout.NORTH);        //		upper.add(new JLabel("Name:"));        this.name = createSizedJTextField(25);        upper.add(FontEditor.StringViewer.createWithFontSelector(name, this));        upper.add(getLabeledComponent("Name:", this.name));        //		upper.add(new JLabel("Effect:"));        upper.add(effectSelector = new ActionEditor.ActionEntry("Effect"));        itemStats.add(upper);        JPanel lower = new JPanel();        lower.setLayout(new BoxLayout(lower, BoxLayout.X_AXIS));        JPanel lowerLeft = new JPanel();        lowerLeft.setLayout(new BoxLayout(lowerLeft, BoxLayout.Y_AXIS));        lowerLeft.add(getLabeledComponent("Cost:",            this.cost = createSizedJTextField(5, true)));        lowerLeft.add(getLabeledComponent("Type:",            this.type = createSizedJTextField(3, true)));        this.type.getDocument().addDocumentListener(new DocumentListener()        {            public void changedUpdate(DocumentEvent de)            {                try                {                    setLabels(Integer.parseInt(type.getText()));                }                catch (NumberFormatException nfe)                {}                catch (ArrayIndexOutOfBoundsException ae)                {}            }            public void insertUpdate(DocumentEvent de)            {                changedUpdate(de);            }            public void removeUpdate(DocumentEvent de)            {                changedUpdate(de);            }        });        lowerLeft.add(pairComponents(strLabel = new JLabel(labels[0][255]),            this.strength = createSizedJTextField(3, true), true));        lowerLeft.add(pairComponents(epLabel = new JLabel(labels[1][255]),            this.extraPower = createSizedJTextField(3, true), true));        lowerLeft.add(pairComponents(incLabel = new JLabel(labels[2][255]),            this.epIncrease = createSizedJTextField(3, true), true));        lowerLeft.add(pairComponents(specialLabel = new JLabel(labels[3][255]),            this.special = createSizedJTextField(3, true), true));        //		lowerLeft.add(        //			getLabeledComponent(        //				"Help Text Address $:",        //				this.helpAdd = new JTextField(8)));        lowerLeft.add(this.helpAdd = new TextEditor.TextOffsetEntry(            "Help Text Address", true));        lower.add(lowerLeft);        lower.add(Box.createHorizontalStrut(5));        JPanel ownerChecks = new JPanel();        ownerChecks.setLayout(new BoxLayout(ownerChecks, BoxLayout.Y_AXIS));        ownerChecks.add(new JLabel("Who can use?"));        ness = new JCheckBox("Ness");        paula = new JCheckBox("Paula");        jeff = new JCheckBox("Jeff");        poo = new JCheckBox("Poo");        ownerChecks.add(ness);        ownerChecks.add(paula);        ownerChecks.add(jeff);        ownerChecks.add(poo);        lower.add(ownerChecks);        lower.add(Box.createHorizontalStrut(5));        JPanel specialFlags = new JPanel();        specialFlags.setLayout(new BoxLayout(specialFlags, BoxLayout.Y_AXIS));        specialFlags.add(new JLabel("Misc. Options"));        noGive = new JCheckBox("Disallow Give");        unknown = new JCheckBox("Unknown");        chicken = new JCheckBox("Chicken (Transformable)");        infinite = new JCheckBox("Infinite Use");        specialFlags.add(noGive);        specialFlags.add(unknown);        specialFlags.add(chicken);        specialFlags.add(infinite);        lower.add(specialFlags);        itemStats.add(lower);        mainWindow.getContentPane().add(itemStats, BorderLayout.CENTER);        mainWindow.pack();    }