public void paint(Graphics g) {
		// draw background (MSIE doesn't do that)
		Dimension dim = defectClusterGrid.getDimension();
		g.setColor(Color.gray);
		g.fillRect(0, 0, cellSize * dim.width - 1, cellSize * dim.height - 1);
		// draw grid
		g.setColor(getBackground());
		for (int x = 1; x < dim.width; x++) {
			g.drawLine(x * cellSize - 1, 0, x * cellSize - 1, cellSize * dim.height - 1);
		}
		for (int y = 1; y < dim.height; y++) {
			g.drawLine( 0, y * cellSize - 1, cellSize * dim.width - 1, y * cellSize - 1);
		}
		// draw populated cells
		g.setColor(Color.yellow);
		for (int y = 0; y < dim.height; y++) {
			for (int x = 0; x < dim.width; x++) {
				if (defectClusterGrid.getCell(x, y)) {					
					g.setColor(Color.black);
					g.fillRect(x * cellSize, y * cellSize, cellSize - 1, cellSize - 1);
					//g.setColor(Color.yellow);
					//g.drawRect(x * cellSize, y * cellSize, cellSize - 1, cellSize - 1);
				}
			}
		}
	}