"6 Speed", "7 Vitality", "8 Luck", "9 Cold cure", "10 Poison cure"
"6 Speed", "7 Vitality", "8 Luck", "9 Cold cure", "10 Poison cure", "11 Nothing"
    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 (0 to make unsellable and undroppable):",            this.cost = createSizedJTextField(5, true)));                typeSel = new JComboBox(itemTypes);                lowerLeft.add(this.type = new AutoSearchBox(typeSel, "Type", 3));        this.type.getTF().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));        strength.addActionListener(this);        strength.setActionCommand("strength");        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));        special.getDocument().addDocumentListener(protectSetter);        //		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);                foodAux = new JPanel();                recoverType = new AutoSearchBox(new JComboBox(new String[] {        		"0 HP", "1 PP", "2 HP & PP", "3 Random IQ-Luck", "4 IQ", "5 Guts",				"6 Speed", "7 Vitality", "8 Luck", "9 Cold cure", "10 Poison cure"        }), strength, "Recovery Type", true, false);        foodAux.add(recoverType);                brokenAux = new JPanel();                fixedItem = new AutoSearchBox(createDecItemComboBox(this,this), extraPower,         		"Fixed Item", true, false);        brokenAux.add(fixedItem);        /*        selectItem = new JButton("Edit this item");        selectItem.setActionCommand("editCurr");        selectItem.addActionListener(this);        brokenAux.add(selectItem);*/                protect = new JRadioButton[16];                protectSections = new JPanel[4];        bg = new ButtonGroup[4];                for(int i = 0; i < 4; i++)        {        	protectSections[i] = new JPanel();        	bg[i] = new ButtonGroup();        }                for(int i = 0; i < 16; i++)        {        	protect[i] = new JRadioButton(i%4 + "");        	protectSections[i/4].add(protect[i]);        	bg[i/4].add(protect[i]);        	protect[i].addActionListener(this);        	protect[i].setActionCommand("protect");        }                JPanel mid = new JPanel(), low = new JPanel(), high = new JPanel();        mid.setLayout(new FlowLayout());        high.setLayout(new FlowLayout());        low.setLayout(new FlowLayout());                armorAux = new JPanel();        armorAux.setLayout(new BoxLayout(armorAux, BoxLayout.Y_AXIS));                high.add(getLabeledComponent("Paralysis", protectSections[0]));        high.add(getLabeledComponent("Flash", protectSections[1]));        mid.add(getLabeledComponent("Freeze", protectSections[2]));        mid.add(getLabeledComponent("Fire", protectSections[3]));        low.add(new JLabel("Set Fire to 1 or 2 and the rest to 0 for " +        		"Sleep protection."));                armorAux.add(high);        armorAux.add(mid);        armorAux.add(low);                JPanel aux = new JPanel();        aux.setLayout(new BoxLayout(aux, BoxLayout.Y_AXIS));        aux.add(armorAux);         aux.add(foodAux);         aux.add(brokenAux);        itemStats.add(aux);                armorAux.setVisible(false);        foodAux.setVisible(false);        brokenAux.setVisible(false);        mainWindow.getContentPane().add(itemStats, BorderLayout.CENTER);        mainWindow.pack();    }