offset = regType.isSelected() ? Integer.parseInt(tf .getText(), 16) : HackModule.toRegPointer(Integer.parseInt( tf.getText(), 16));
offset = Integer.parseInt(HackModule.killSpaces(tf .getText()), 16); if (regType.isSelected()) offset = HackModule.toRegPointer(offset);
            public void actionPerformed(ActionEvent ae)            {                int offset;                try                {                    offset = regType.isSelected() ? Integer.parseInt(tf                        .getText(), 16) : HackModule.toRegPointer(Integer.parseInt(                        tf.getText(), 16));                }                catch (NumberFormatException e)                {                    e.printStackTrace();                    return;                }                if (!gotoOffset(offset))                    JOptionPane.showMessageDialog(gotoDialog,                        "The offset you entered is not\n" + "in the ROM.",                        "Unable to find offset", JOptionPane.ERROR_MESSAGE);                else                    gotoDialog.setVisible(false);            }