tsetNames[i] = i + " - " + TileEditor.TILESET_NAMES[i];
tsetNames[i] = getNumberedString(TileEditor.TILESET_NAMES[i],i,false);
	protected void init()	{		readFromRom(this.rom);				mainWindow = createBaseWindow(this);		mainWindow.setTitle(getDescription());				String[] tsetNames = new String[MapEditor.drawTsetNum];		for (int i = 0; i < tsetNames.length; i++)			tsetNames[i] = i + " - " + TileEditor.TILESET_NAMES[i];		tileset = new JComboBox(tsetNames);		tileset.addActionListener(this);				flagGroup = new JComboBox();		flagGroup.addActionListener(this);				flag = HackModule.createSizedJTextField(3, false);		flag.addActionListener(this);				reverse = new JCheckBox();		reverse.addActionListener(this);				palette = new JComboBox();		palette.addActionListener(this);				add = new JButton("Add Tile Change");		add.addActionListener(this);				del = new JButton("Delete Tile Change");		del.addActionListener(this);				addGroup = new JButton("Add Flag Group");		addGroup.addActionListener(this);				delGroup = new JButton("Delete Flag Group");		delGroup.addActionListener(this);				tilesPanel = new JPanel();		tilesPanel.setLayout(new BoxLayout(tilesPanel, BoxLayout.Y_AXIS));				tileChooser = new TileChooser(23, 3, false);		tileChooser.addActionListener(this);				limit = HackModule.createSizedJTextField(2, true);		limit.setText(Integer.toString(5));		limit.getDocument().addDocumentListener(this);				page = new JComboBox();		page.addActionListener(this);						JPanel topPanel = new JPanel();		topPanel.add(HackModule.getLabeledComponent("Tileset: ", tileset));		topPanel.add(HackModule.getLabeledComponent("Preview palette: ", palette));		topPanel.add(HackModule.getLabeledComponent("Flag Group : ", flagGroup));		topPanel.add(addGroup);		topPanel.add(delGroup);				JPanel middlePanel = new JPanel();		middlePanel.add(HackModule.getLabeledComponent("Flag: ", flag));		middlePanel.add(HackModule.getLabeledComponent("Reversal: ", reverse));		middlePanel.add(add);		middlePanel.add(del);				JPanel bottomPanel = new JPanel();		bottomPanel.add(new JLabel("Limit per page: "));		bottomPanel.add(limit);		bottomPanel.add(new JLabel("Page: "));		bottomPanel.add(page);				JPanel panel = new JPanel();		panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));		panel.add(topPanel);		panel.add(middlePanel);		panel.add(tilesPanel);		panel.add(tileChooser);		panel.add(tileChooser.getScrollBar());		panel.add(bottomPanel);				mainWindow.getContentPane().add(panel, BorderLayout.CENTER);		mainWindow.pack();	}