if (regType.isSelected())
if (snesType.isSelected())
            public void actionPerformed(ActionEvent ae)            {                int offset;                try                {                    offset = Integer.parseInt(HackModule.killSpaces(tf                        .getText()), 16);                    if (regType.isSelected())                        offset = HackModule.toRegPointer(offset);                }                catch (NumberFormatException e)                {                    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);            }