public void updateDisplay() {
		if (this.stock != null) {
			this.setTitle("Edit stock \"" + this.stock.getName() + "\"");
			this.txfName.setText(this.stock.getName());
			this.cbxType.setSelectedItem(stock.getType());
			this.txfCapacity.setText(stock.getCapacity() + "");
			this.txfMaxTrays.setText(stock.getMaxTraysPerStorageUnit() + "");
			this.txfUnitsPerRow.setText(stock.getStorageUnitsPerRow() + "");
		}
		else {
			this.setTitle("New stock");
			this.txfName.setText("New stock");
			this.cbxType.setSelectedItem(StockType.SEMI);
			this.txfCapacity.setText("64");
			this.txfMaxTrays.setText("16");
			this.txfUnitsPerRow.setText("8");
		}
	}