int flagNum = Integer.parseInt(flag.getText(), 16); if ((flagNum <= 0) && (entry.size() > 0)) return -1;
TilesetChange entry = (TilesetChange) tilesetEntries.get( flagGroup.getSelectedIndex()); if ((flag.getText().length() == 0)) return 0;
	private int saveInfo()	{		TilesetChange entry = entries[tileset.getSelectedIndex()];		if ((flag.getText().length() == 0))			return 0;		else		{			int flagNum = Integer.parseInt(flag.getText(), 16);			if ((flagNum <= 0) && (entry.size() > 0))				return -1;			else				entry.setFlag((short) flagNum);		}				entry.setReverse(reverse.isSelected());				return 1;	}