if (mode == 3) {
if ((mode == 3) && (tile < EnemyPlacementGroupsEditor.ENEMY_GROUPS_COUNT)) {
		private void drawTiles(Graphics g, Graphics2D g2d) {			g2d.setPaint(Color.black);			g2d.setFont(new Font("Arial", Font.PLAIN, 12));			for (int i = 0; i <= width; i++) {				for (int j = 0; j <= height; j++) {					int tile = ((scroll.getValue() + i) * (height + 1)) + j;					boolean changed = false;					if ((mapChanges) && ((mode == 1) || (mode == 2)))						for (int k = 0; k < MapEventEditor.countGroups(tset); k++) {							for (int l = 0; l < MapEventEditor									.countTileChanges(tset, k); l++)								if (tile == MapEventEditor.getTileChange(tset,										k, l).getTile1()) {									tile = MapEventEditor.getTileChange(tset,											k, l).getTile2();									changed = true;									break;								}							if (changed)								break;						}					if (mode == 3) {						g2d.setPaint(new Color(								((int) (Math.E * 0x100000 * tile)) & 0xffffff));						g2d.fill(new Rectangle2D.Double(								(i * MapEditor.tileWidth),								(j * MapEditor.tileHeight),								MapEditor.tileWidth, MapEditor.tileHeight));						g2d.setPaint(Color.WHITE);						g2d.fill(new Rectangle2D.Double(								(i * MapEditor.tileWidth),								((j + 0.25) * MapEditor.tileHeight),								MapEditor.tileWidth, MapEditor.tileHeight / 2));						g2d.setPaint(Color.BLACK);						g2d.drawString(addZeros(Integer.toHexString(tile), 2),								(float) ((i + 0.25) * MapEditor.tileWidth),								(float) ((j + 0.75) * MapEditor.tileHeight));					} else if (mode == 1)						g2d.drawString(addZeros(Integer.toHexString(tile), 2),								(i * MapEditor.tileWidth),								(j * MapEditor.tileHeight));					else if (mode == 2) {						EbMap.loadTileImage(tset, tile, pal);						g								.drawImage(EbMap.getTileImage(tset, tile, pal),										(i * MapEditor.tileWidth),										(j * MapEditor.tileHeight),										MapEditor.tileWidth,										MapEditor.tileHeight, this);					}					g2d.setPaint(Color.black);					g2d.draw(new Rectangle2D.Double((i * MapEditor.tileWidth),							(j * MapEditor.tileHeight), MapEditor.tileWidth,							MapEditor.tileHeight));					tile = ((scroll.getValue() + i) * (height + 1)) + j;					if (changed || (selected == tile)) {						Rectangle2D.Double rect = new Rectangle2D.Double(								(i * MapEditor.tileWidth),								(j * MapEditor.tileHeight),								MapEditor.tileWidth, MapEditor.tileHeight);						if (changed && (selected == tile)) {							g2d.setPaint(Color.orange);							g2d.setComposite(AlphaComposite.getInstance(									AlphaComposite.SRC_OVER, 0.7F));						} else if (changed) {							g2d.setPaint(Color.red);							g2d.setComposite(AlphaComposite.getInstance(									AlphaComposite.SRC_OVER, 0.5F));						} else if (selected == tile) {							g2d.setPaint(Color.yellow);							g2d.setComposite(AlphaComposite.getInstance(									AlphaComposite.SRC_OVER, 0.6F));						}						g2d.fill(rect);						g2d.setComposite(AlphaComposite.getInstance(								AlphaComposite.SRC_OVER, 1.0F));					}				}			}		}