@Override
		public void mouseReleased(MouseEvent arg0) {
			SquareGraphic square = (SquareGraphic) arg0.getSource();

			if (selectedSquare != null && !square.equals(selectedSquare)) {
				selectedSquare.deselect();
			}

			square.toggleClick();
			selectedSquare = square;

			String output = "";
			if (square.getIsSelected()) {
				Stock stock = square.getStock();
				output = "Selected stock:\n" + stock.getName();
				output += "\n\nStock Type:\n" + stock.getType();
				output += "\n\nCapacity:\n" + stock.getCapacity()
						+ " storage units";
				output += "\n\nUsed storage units:\n"
						+ stock.getStorageUnitsTotal();
				output += "\n\nMax Trays per Storage Unit:\n"
						+ stock.getMaxTraysPerStorageUnit();

				btnUpdateStock.setEnabled(true);
				btnDeleteStock.setEnabled(true);
				btnOpenStock.setEnabled(true);
			}
			else {
				output = "No Stock selected";
				btnUpdateStock.setEnabled(false);
				btnDeleteStock.setEnabled(false);
				btnOpenStock.setEnabled(false);
			}

			txaStockInfo.setText(output);
		}