private void update() {
				if (algorithmComboBox.getSelectedItem().toString()
						.equals("Breadth First Search")
						|| algorithmComboBox.getSelectedItem().toString()
								.equals("Iterative DLS"))
					heuristicComboBox.setEnabled(false);
				if (algorithmComboBox.getSelectedItem().toString()
						.equals("Weighted A*")) {
					weightTextField.setEnabled(true);
				} else {
					weightTextField.setEnabled(false);
				}
			}