瀏覽代碼

little optical fix

dominik.rieder 7 年之前
父節點
當前提交
8857cd3be0
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8 3
      src/ui/view/GUI.java

+ 8 - 3
src/ui/view/GUI.java

@@ -121,7 +121,8 @@ public class GUI<E> implements CategoryListener {
 	private JMenuItem editItem = new JMenuItem("Edit Object");
 	private String catOfObjToBeEdited;
 	private final JScrollPane statTab = new JScrollPane();
-
+	
+	private FlexiblePane flexPane;
 	private StatPanel2 statSplitPane;
 	private JScrollPane statScrollPane;
 	private UpperNodeCanvas unc;
@@ -281,7 +282,7 @@ public class GUI<E> implements CategoryListener {
 		statScrollPane = new JScrollPane(statSplitPane);
 		this.canvas = new MyCanvas(model, control);
 		this.holonCanvas = new HolonCanvas(model, control);
-		this.unitGraph = new UnitGraph(model, control);
+		//this.unitGraph = new UnitGraph(model, control);
 		control.initListener(this);
 		controller.setCanvas(canvas);
 		model.setConsole(console);
@@ -289,6 +290,7 @@ public class GUI<E> implements CategoryListener {
 		initialize();
 		updateCategories(model.getCategories());
 		updCon = new UpdateController(model, controller);
+		flexPane = new FlexiblePane();
 	}
 
 	/**
@@ -1291,9 +1293,11 @@ public class GUI<E> implements CategoryListener {
 
 		scrollPane1.setColumnHeaderView(panel);
 		panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
+		toolBar.setAlignmentX(Component.LEFT_ALIGNMENT);
 		toolBar.setFloatable(false);
 
 		panel.add(toolBar);
+		comboBox.setMaximumSize(new Dimension(100, 20));
 		toolBar.add(comboBox);
 		comboBox.setModel(new DefaultComboBoxModel(comboBoxCat));
 		// Add Buttonnew DefaultComboBoxModel(comboBoxCat)
@@ -1692,6 +1696,7 @@ public class GUI<E> implements CategoryListener {
 				statSplitPane.repaintGraphs();
 			}
 		});
+		splitPane1.setMinimumSize(new Dimension(0, 25));
 		splitPane.setRightComponent(splitPane1);
 		splitPane.setDividerLocation(200);
 		splitPane1.setDividerLocation(500);
@@ -1702,7 +1707,7 @@ public class GUI<E> implements CategoryListener {
 		tabbedPane.addTab("View", canvasSP);
 		tabbedPane.addTab("Statistics", statScrollPane);
 		tabbedPane.addTab("Holon", holonCanvas);
-		tabbedPane.addTab("Flexibility", new FlexiblePane());
+		tabbedPane.addTab("Flexibility", flexPane);
 
 		splitPaneCanvasConsole.setRightComponent(console);
 		splitPane1.setLeftComponent(splitPaneCanvasConsole);