|
@@ -16,6 +16,7 @@ import javax.swing.SwingConstants;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.control.Controller;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.control.Controller;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Model;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Model;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.util.Utility;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.util.Utility;
|
|
|
|
+import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.popups.SimulationConfigurator;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Main class of the GUI, which combines the UserInterface and visualisation of the simulation.
|
|
* Main class of the GUI, which combines the UserInterface and visualisation of the simulation.
|
|
@@ -73,7 +74,7 @@ public class MainFrame extends JFrame {
|
|
}
|
|
}
|
|
|
|
|
|
JMenuBar menuBar = new JMenuBar();
|
|
JMenuBar menuBar = new JMenuBar();
|
|
- super.setJMenuBar(menuBar);
|
|
|
|
|
|
+ super.setJMenuBar(menuBar);
|
|
//getContentPane().add(menuBar, BorderLayout.NORTH);
|
|
//getContentPane().add(menuBar, BorderLayout.NORTH);
|
|
/*
|
|
/*
|
|
JMenuItem mntmOptions = new JMenuItem("Options");
|
|
JMenuItem mntmOptions = new JMenuItem("Options");
|
|
@@ -88,7 +89,11 @@ public class MainFrame extends JFrame {
|
|
sim.setVisible(true);
|
|
sim.setVisible(true);
|
|
});
|
|
});
|
|
menuBar.add(mntmSimulation);
|
|
menuBar.add(mntmSimulation);
|
|
-
|
|
|
|
|
|
+ /*
|
|
|
|
+ JMenuItem mntmOption = new JMenuItem("Options");
|
|
|
|
+ menuBar.add(mntmOption);
|
|
|
|
+ menuBar.setLayout(new FlowLayout(FlowLayout.LEFT));
|
|
|
|
+ */
|
|
this.setVisible(true);
|
|
this.setVisible(true);
|
|
//Set Dimension of the model to the JPanel size
|
|
//Set Dimension of the model to the JPanel size
|
|
panel.delayedInit();
|
|
panel.delayedInit();
|