|
@@ -9,6 +9,7 @@ import javax.swing.JMenu;
|
|
import javax.swing.JMenuItem;
|
|
import javax.swing.JMenuItem;
|
|
import javax.swing.JOptionPane;
|
|
import javax.swing.JOptionPane;
|
|
import javax.swing.JTree;
|
|
import javax.swing.JTree;
|
|
|
|
+import javax.swing.border.LineBorder;
|
|
import javax.swing.BoxLayout;
|
|
import javax.swing.BoxLayout;
|
|
import javax.swing.JSplitPane;
|
|
import javax.swing.JSplitPane;
|
|
import javax.swing.JScrollPane;
|
|
import javax.swing.JScrollPane;
|
|
@@ -164,6 +165,7 @@ public class GUI implements CategoryListener {
|
|
this.testgraph = new UnitGraph(model, control); // for testing, remove
|
|
this.testgraph = new UnitGraph(model, control); // for testing, remove
|
|
|
|
|
|
timePanel = new TimePanel(model, controller);
|
|
timePanel = new TimePanel(model, controller);
|
|
|
|
+ timePanel.setBorder(null);
|
|
|
|
|
|
// later
|
|
// later
|
|
control.initListener(this);
|
|
control.initListener(this);
|
|
@@ -226,6 +228,7 @@ public class GUI implements CategoryListener {
|
|
canvas.setBackground(Color.WHITE);
|
|
canvas.setBackground(Color.WHITE);
|
|
canvas.setPreferredSize(new Dimension(10000, 10000));
|
|
canvas.setPreferredSize(new Dimension(10000, 10000));
|
|
JScrollPane canvasSP = new JScrollPane(canvas);
|
|
JScrollPane canvasSP = new JScrollPane(canvas);
|
|
|
|
+ canvasSP.setBorder(null);
|
|
|
|
|
|
tabbedPane.addTab("Modeling", new ImageIcon(new ImageIcon(this.getClass().getResource("/Images/home.png"))
|
|
tabbedPane.addTab("Modeling", new ImageIcon(new ImageIcon(this.getClass().getResource("/Images/home.png"))
|
|
.getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH)), canvasSP, "Model a CPS");
|
|
.getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH)), canvasSP, "Model a CPS");
|
|
@@ -245,6 +248,7 @@ public class GUI implements CategoryListener {
|
|
// Set up of the HolonElements section
|
|
// Set up of the HolonElements section
|
|
Object[] columnNames = { "Device", "Energy", "Quantity" };
|
|
Object[] columnNames = { "Device", "Energy", "Quantity" };
|
|
tableModelHolonElement.setColumnIdentifiers(columnNames);
|
|
tableModelHolonElement.setColumnIdentifiers(columnNames);
|
|
|
|
+ tableHolonElement.setBorder(null);
|
|
tableHolonElement.setModel(tableModelHolonElement);
|
|
tableHolonElement.setModel(tableModelHolonElement);
|
|
tableHolonElement.setFillsViewportHeight(true);
|
|
tableHolonElement.setFillsViewportHeight(true);
|
|
tableHolonElement.setCellSelectionEnabled(true);
|
|
tableHolonElement.setCellSelectionEnabled(true);
|
|
@@ -683,6 +687,9 @@ public class GUI implements CategoryListener {
|
|
splitPane_1.setBorder(null);
|
|
splitPane_1.setBorder(null);
|
|
split_HolonEl_Pro.setBorder(null);
|
|
split_HolonEl_Pro.setBorder(null);
|
|
split_Graph_HolonEl.setBorder(null);
|
|
split_Graph_HolonEl.setBorder(null);
|
|
|
|
+ scrollPane_2.setBorder(null);
|
|
|
|
+ panel_HolonEl.setBorder(null);
|
|
|
|
+ tableHolonElementScrollPane.setBorder(null);
|
|
|
|
|
|
frmCyberPhysical.getContentPane().add(timePanel, BorderLayout.SOUTH);
|
|
frmCyberPhysical.getContentPane().add(timePanel, BorderLayout.SOUTH);
|
|
}
|
|
}
|