@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);

		square = new Rectangle2D.Double(0, 0, this.getWidth() - 1,
				this.getHeight() - 1);
		squareInside = new Rectangle2D.Double(1, 1, this.getWidth() - 3,
				this.getHeight() - 3);
		g2d = (Graphics2D) g;
		g2d.setPaint(StockState.getColor(state));
		g2d.fill(square);

		if (this.isSelected == true) {
			g2d.setPaint(Color.DARK_GRAY);
			g2d.draw(square);
			g2d.setPaint(Color.DARK_GRAY);
			g2d.draw(squareInside);
		}

		updateStockInfo();
		lblName.setBounds(10, 10, this.getWidth() - 20, this.getHeight() - 20);

	}