|
@@ -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);
|
|
|
}
|
|
|
});
|
|
|
|