int address = Integer.parseInt(textPointer3Field.getText(), 16);  if( rom.length() == 0x400200 )
int address = Integer.parseInt(textPointer3Field .getText(), 16);      if (address < rom.length() - 1 && address >= 0)
        public boolean updateText( boolean update )        {            if( update)            {                switch( sceneNumber )                {                    case 0:                        try                        {                            int address = Integer.parseInt(textPointer1Field.getText(), 16);                                                        if( rom.length() == 0x400200 )                            {                                //this is just making sure that it won't have an error reading the rom                                //these values in the bounds should never be used for a pointer =p                                if( address < AbstractRom.EB_ROM_SIZE_EXPANDED - 1 && address >= 0 )                                {                                    textBlock = new Text( address, true );                                }                                else                                {                                    JOptionPane.showMessageDialog(                                        null, "pointer out of bounds", "error", JOptionPane.ERROR_MESSAGE );                                    return false;                                }                            }                            else                            {                                if( address < AbstractRom.EB_ROM_SIZE_REGULAR - 1 && address >= 0 )                                {                                    textBlock = new Text( address, true );                                }                                else                                {                                    JOptionPane.showMessageDialog(                                        null, "pointer out of bounds", "error", JOptionPane.ERROR_MESSAGE );                                    return false;                                }                            }                        }                        catch( NumberFormatException e )                        {                            JOptionPane.showMessageDialog(                                 null, "invalid entry for address 1", "error", JOptionPane.ERROR_MESSAGE );                            return false;                        }                                                break;                    case 1:                        try                        {                            int address = Integer.parseInt(textPointer2Field.getText(), 16);                                                        if( rom.length() == 0x400200 )                            {                                //this is just making sure that it won't have an error reading the rom                                //these values in the bounds should never be used for a pointer =p                                if( address < AbstractRom.EB_ROM_SIZE_EXPANDED - 1 && address >= 0 )                                {                                    textBlock = new Text( address, true );                                }                                else                                {                                    JOptionPane.showMessageDialog(                                        null, "pointer out of bounds", "error", JOptionPane.ERROR_MESSAGE );                                    return false;                                }                            }                            else                            {                                if( address < AbstractRom.EB_ROM_SIZE_REGULAR - 1 && address >= 0 )                                {                                    textBlock = new Text( address, true );                                }                                else                                {                                    JOptionPane.showMessageDialog(                                        null, "pointer out of bounds", "error", JOptionPane.ERROR_MESSAGE );                                    return false;                                }                            }                        }                        catch( NumberFormatException e )                        {                            JOptionPane.showMessageDialog(                                 null, "invalid entry for address 1", "error", JOptionPane.ERROR_MESSAGE );                            return false;                        }                        break;                    case 2:                        try                        {                            int address = Integer.parseInt(textPointer3Field.getText(), 16);                                                        if( rom.length() == 0x400200 )                            {                                //this is just making sure that it won't have an error reading the rom                                //these values in the bounds should never be used for a pointer =p                                if( address < AbstractRom.EB_ROM_SIZE_EXPANDED - 1 && address >= 0 )                                {                                    textBlock = new Text( address, true );                                }                                else                                {                                    JOptionPane.showMessageDialog(                                        null, "pointer out of bounds", "error", JOptionPane.ERROR_MESSAGE );                                    return false;                                }                            }                            else                            {                                if( address < AbstractRom.EB_ROM_SIZE_REGULAR - 1 && address >= 0 )                                {                                    textBlock = new Text( address, true );                                }                                else                                {                                    JOptionPane.showMessageDialog(                                        null, "pointer out of bounds", "error", JOptionPane.ERROR_MESSAGE );                                    return false;                                }                            }                        }                        catch( NumberFormatException e )                        {                            JOptionPane.showMessageDialog(                                 null, "invalid entry for address 1", "error", JOptionPane.ERROR_MESSAGE );                            return false;                        }                        break;                }            }                        textBlock.updateGUI();                        return true;        }