false, this), "Sprite: "));
true, this), "Sprite: "));
    protected void init()    {        mainWindow = createBaseWindow(this);        mainWindow.setTitle(this.getDescription());        mainWindow.setResizable(false);        Box main = new Box(BoxLayout.Y_AXIS);        main.add(new JSearchableComboBox(selector = HackModule            .createComboBox(tptEntries, this), "Entry: "));        selector.setActionCommand("TPTSelector");        main.add(new JSearchableComboBox(sprite = createComboBox(sptNames,            false, this), "Sprite: "));        sprite.setActionCommand("spriteSelector");        main.add(itemSearch = new JSearchableComboBox(item = ItemEditor            .createItemComboBox(this, this), "Item: "));        item.setActionCommand("itemSelector");        JPanel bottom = new JPanel(new BorderLayout());        spritePreview = new JLabel();        Box temp = new Box(BoxLayout.Y_AXIS);        temp.add(Box.createVerticalGlue());        temp.add(HackModule.createFlowLayout(spritePreview));        temp.add(Box.createVerticalGlue());        bottom.add(temp, BorderLayout.CENTER);        Box entry = new Box(BoxLayout.Y_AXIS);        entry.add(pairComponents(moneyCheckBox = new JCheckBox("Money: "),            money = new JTextField(6), true));        moneyCheckBox.setActionCommand("moneyCheckBox");        moneyCheckBox.addActionListener(this);        entry.add(HackModule.getLabeledComponent("Type: ", type = HackModule            .createJComboBoxFromArray(new String[]{"[1] Person", "[2] Item",                "[3] Object"})));        type.setActionCommand("typeSelector");        type.addActionListener(this);        //        entry.add(        //            HackModule.getLabeledComponent(        //                "Pointer: $",        //                pointer = HackModule.createSizedJTextField(6)));        //        entry.add(        //            HackModule.getLabeledComponent(        //                "Secondary Pointer: $",        //                secPointer = HackModule.createSizedJTextField(6)));        entry.add(pointer = new TextEditor.TextOffsetEntry("Pointer", true));        entry.add(secPointer = new TextEditor.TextOffsetEntry(            "Secondary Pointer", true));        entry.add(HackModule.getLabeledComponent("Movement: ", movement = HackModule.createSizedJTextField(5)));        entry.add(HackModule.getLabeledComponent("Direction: ",            direction = HackModule.createJComboBoxFromArray(new String[]{"Up",                "Up-Right", "Right", "Down-Right", "Down", "Down-Left", "Left",                "Up-Left"})));        direction.setActionCommand("DirectionSelector");        direction.addActionListener(this);        entry.add(HackModule.getLabeledComponent("Event Flag: ",            eventFlag = HackModule.createSizedJTextField(5)));        entry.add(HackModule.getLabeledComponent("Show Sprite: ",            showSprite = new JComboBox(new String[]{"Always (Gifts)",                "When OFF", "When ON"})));        bottom.add(entry, BorderLayout.EAST);        //bottom.add(Box.createHorizontalStrut(20), BorderLayout.CENTER);        main.add(bottom);        mainWindow.getContentPane().add(main, BorderLayout.CENTER);        mainWindow.pack();    }