|
@@ -27,6 +27,7 @@ import javax.swing.table.DefaultTableModel;
|
|
import java.awt.Color;
|
|
import java.awt.Color;
|
|
import java.awt.Component;
|
|
import java.awt.Component;
|
|
import java.awt.Cursor;
|
|
import java.awt.Cursor;
|
|
|
|
+import java.awt.Dimension;
|
|
import java.awt.Image;
|
|
import java.awt.Image;
|
|
import java.awt.Point;
|
|
import java.awt.Point;
|
|
import java.awt.Toolkit;
|
|
import java.awt.Toolkit;
|
|
@@ -51,6 +52,9 @@ import Interfaces.CategoryListener;
|
|
import java.awt.event.ActionListener;
|
|
import java.awt.event.ActionListener;
|
|
import java.awt.event.MouseAdapter;
|
|
import java.awt.event.MouseAdapter;
|
|
import java.awt.event.MouseEvent;
|
|
import java.awt.event.MouseEvent;
|
|
|
|
+import java.awt.event.MouseListener;
|
|
|
|
+import java.beans.PropertyChangeEvent;
|
|
|
|
+import java.beans.PropertyChangeListener;
|
|
import java.awt.event.ActionEvent;
|
|
import java.awt.event.ActionEvent;
|
|
|
|
|
|
public class GUI implements CategoryListener {
|
|
public class GUI implements CategoryListener {
|
|
@@ -147,9 +151,16 @@ public class GUI implements CategoryListener {
|
|
splitPane.setRightComponent(splitPane_1);
|
|
splitPane.setRightComponent(splitPane_1);
|
|
splitPane.setDividerLocation(200);
|
|
splitPane.setDividerLocation(200);
|
|
splitPane_1.setDividerLocation(500);
|
|
splitPane_1.setDividerLocation(500);
|
|
|
|
+
|
|
canvas.setBackground(Color.WHITE);
|
|
canvas.setBackground(Color.WHITE);
|
|
|
|
+ canvas.setPreferredSize(new Dimension(10000, 10000));
|
|
|
|
+ JScrollPane canvasSP = new JScrollPane(canvas);
|
|
|
|
+ canvasSP.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
|
|
|
|
+ canvasSP.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
|
|
|
|
|
|
- tabbedPane.addTab("Modeling", null, canvas, null);
|
|
|
|
|
|
+ tabbedPane.addTab("Modeling", null, canvasSP, null);
|
|
|
|
+
|
|
|
|
+
|
|
tabbedPane.addTab("Simulation", null, scrollPane_2, null);
|
|
tabbedPane.addTab("Simulation", null, scrollPane_2, null);
|
|
dtrpnHereWillBe.setText("Here will be the Simulation");
|
|
dtrpnHereWillBe.setText("Here will be the Simulation");
|
|
|
|
|