|
@@ -2,13 +2,16 @@ package de.tu_darmstadt.tk.SmartHomeNetworkSim.view;
|
|
|
|
|
|
import java.awt.FlowLayout;
|
|
import java.awt.FlowLayout;
|
|
|
|
|
|
|
|
+
|
|
import javax.swing.JMenu;
|
|
import javax.swing.JMenu;
|
|
import javax.swing.JMenuBar;
|
|
import javax.swing.JMenuBar;
|
|
import javax.swing.JMenuItem;
|
|
import javax.swing.JMenuItem;
|
|
|
|
|
|
|
|
+
|
|
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.view.popups.AboutPopUp;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.popups.AboutPopUp;
|
|
|
|
+import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.popups.NetworkTreeWindow;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.popups.SettingsPopUp;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.popups.SettingsPopUp;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.popups.SimulationConfigurator;
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.popups.SimulationConfigurator;
|
|
|
|
|
|
@@ -93,6 +96,14 @@ public class MenuBar extends JMenuBar {
|
|
settings.setVisible(true);
|
|
settings.setVisible(true);
|
|
});
|
|
});
|
|
mnEdit.add(mntmOption);
|
|
mnEdit.add(mntmOption);
|
|
|
|
+
|
|
|
|
+ JMenuItem mntmTreeView = new JMenuItem("Tree View");
|
|
|
|
+ mntmTreeView.addActionListener(a -> {
|
|
|
|
+ NetworkTreeWindow net = new NetworkTreeWindow(controller);
|
|
|
|
+ net.setLocationRelativeTo(this.getParent());
|
|
|
|
+ net.setVisible(true);
|
|
|
|
+ });
|
|
|
|
+ mnEdit.add(mntmTreeView);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|