@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		Graphics2D g2d = (Graphics2D) g;
		g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
				RenderingHints.VALUE_ANTIALIAS_ON);
		g.setColor(getForeground());
		g2d.drawRoundRect(0, 0, getWidth() - 1, getHeight() - 1, 4, 4);
		if (cellSize_ > 0 && selectedComponent_ != null) {
			int x = 2;
			int y = 2;
			int h = cellSize_;
			for (AssociatedNodeLayer l : layers_) {
				if (l.equals(selectedComponent_.getActiveLayer())) {
					g.setColor(Color.DARK_GRAY);
				} else {
					g.setColor(Color.gray);
				}
				if (l.isVisible()) {
					g.fillRoundRect(x, y, h, h, 4, 4);
				} else {
					g.drawRoundRect(x, y, h, h, 4, 4);
				}
				x += h + 2;
				if (x + h > getWidth()) {
					x = 2;
					y += h + 2;
				}
			}
		}
	}