|
@@ -2,7 +2,6 @@ package de.tu_darmstadt.tk.SmartHomeNetworkSim.view.popups;
|
|
|
|
|
|
import java.awt.BorderLayout;
|
|
|
import java.awt.Rectangle;
|
|
|
-import java.awt.Toolkit;
|
|
|
|
|
|
import javax.swing.JCheckBox;
|
|
|
import javax.swing.JFrame;
|
|
@@ -15,6 +14,7 @@ import javax.swing.SwingConstants;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.control.ConfigurationController;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.control.Controller;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Model;
|
|
|
+import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.util.Utility;
|
|
|
|
|
|
/**
|
|
|
* PopUp to display and edit the settings
|
|
@@ -33,7 +33,7 @@ public class SettingsPopUp extends JFrame {
|
|
|
this.config = controller.getControllerConfiguration();
|
|
|
|
|
|
setTitle("Settings");
|
|
|
- setIconImage(Toolkit.getDefaultToolkit().getImage(SettingsPopUp.class.getResource("/images/settings.png")));
|
|
|
+ setIconImage(Utility.loadFile("/images/settings.png"));
|
|
|
|
|
|
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
|
|
|
getContentPane().add(tabbedPane, BorderLayout.CENTER);
|