private void drawTiles(Graphics2D g) {
			int dtile;
			for (int i = 0; i < width; i++) {
				for (int j = 0; j < height; j++) {
					dtile = (i + scroll.getValue()) * height + j;
					if (dtile < 1024) {
                        Image tileImage = MapDisplay.getTileImage(TileEditor.getDrawTilesetNumber(tilesetChooser.getSelectedIndex()), dtile, mapDisplay.getSelectedSectorPalNumber());
						g.drawImage( tileImage, 
                                i * MapData.TILE_WIDTH + 1, 
                                j * MapData.TILE_HEIGHT + 1, 
                                MapData.TILE_WIDTH,
								MapData.TILE_HEIGHT, 
                                this );
						if (dtile == tile) {
							g.setPaint(Color.white);
							g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6F));
							g.fillRect(i * MapData.TILE_WIDTH + 1, j * MapData.TILE_HEIGHT + 1,
									MapData.TILE_WIDTH, MapData.TILE_HEIGHT);
							g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0F));
						} else if( mapDisplay.highlightedTiles != null && mapDisplay.highlightedTiles.contains( dtile ) ) {
	                    	g.setPaint( colorFromInt( mapDisplay.highlightedTiles.indexOf( dtile ) ) );
							g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6F));
							g.fillRect(i * MapData.TILE_WIDTH + 1, j * MapData.TILE_HEIGHT + 1, MapData.TILE_WIDTH, MapData.TILE_HEIGHT);
							g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0F));
	                    }
					}
				}
			}
		}