|
@@ -45,8 +45,6 @@ public class AddElementPopUp extends JDialog {
|
|
private JTextField flexibleEnergy;
|
|
private JTextField flexibleEnergy;
|
|
/** Flexible if checkbox is checked */
|
|
/** Flexible if checkbox is checked */
|
|
JCheckBox checkboxFlexible;
|
|
JCheckBox checkboxFlexible;
|
|
- /** Panel for the Graph */
|
|
|
|
- JPanel panelGraph;
|
|
|
|
/** Model which is used */
|
|
/** Model which is used */
|
|
private Model model;
|
|
private Model model;
|
|
|
|
|
|
@@ -58,7 +56,7 @@ public class AddElementPopUp extends JDialog {
|
|
super((java.awt.Frame) null, true);
|
|
super((java.awt.Frame) null, true);
|
|
this.setIconImage(Util.loadImage(this, "/Images/Dummy_House.png", 30, 30));
|
|
this.setIconImage(Util.loadImage(this, "/Images/Dummy_House.png", 30, 30));
|
|
setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
|
|
setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
|
|
- setBounds(100, 100, 400, 515);
|
|
|
|
|
|
+ setBounds(100, 100, 400, 245);
|
|
setLocationRelativeTo(parentFrame);
|
|
setLocationRelativeTo(parentFrame);
|
|
getContentPane().setLayout(new BorderLayout());
|
|
getContentPane().setLayout(new BorderLayout());
|
|
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
|
|
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
|
|
@@ -133,11 +131,6 @@ public class AddElementPopUp extends JDialog {
|
|
amount.setColumns(10);
|
|
amount.setColumns(10);
|
|
amount.setText("1");
|
|
amount.setText("1");
|
|
|
|
|
|
- /* Add Graph Panel */
|
|
|
|
- panelGraph = new JPanel();
|
|
|
|
- panelGraph.setBounds(12, 157, 358, 263);
|
|
|
|
- contentPanel.add(panelGraph);
|
|
|
|
-
|
|
|
|
/* Add Buttons and Actions */
|
|
/* Add Buttons and Actions */
|
|
JPanel buttonPane = new JPanel();
|
|
JPanel buttonPane = new JPanel();
|
|
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
|
|
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
|