Browse Source

speed fix

dominik.rieder 8 years ago
parent
commit
b168eca430
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/ui/view/GUI.java

+ 3 - 3
src/ui/view/GUI.java

@@ -208,8 +208,8 @@ public class GUI<E> implements CategoryListener {
 	public GUI(Control control) {
 		this.controller = control;
 		this.model = control.getModel();
-		//this.canvas = new MyCanvas(model, control);
-		//this.unitGraph = new UnitGraph(model, control);
+		this.canvas = new MyCanvas(model, control);
+		this.unitGraph = new UnitGraph(model, control);
 		control.initListener(this);
 		initialize();
 		updateCategories(model.getCategories());
@@ -1429,7 +1429,7 @@ public class GUI<E> implements CategoryListener {
 			public void actionPerformed(ActionEvent e) {
 				int speed = Integer.parseInt(simulationSpeedField.getText());
 				timePanel.setTimerSpeed(speed);
-				mnSimulationSpeed.
+				mnSimulationSpeed.setPopupMenuVisible(false);
 			}
 		});