Browse Source

Merge branch 'Ohne_Drag_and_Drop' of https://git.tk.informatik.tu-darmstadt.de/carlos.garcia/praktikum-holons into Ohne_Drag_and_Drop

Edgardo Palza 8 years ago
parent
commit
f2f0ccaba3
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/ui/view/GUI.java

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

@@ -96,7 +96,8 @@ public class GUI implements CategoryListener {
 
 	private JTable tableHolonElement = new JTable();
 	private DefaultTableModel tableModelHolonElement = new DefaultTableModel();
-	private final JScrollPane scrollElements = new JScrollPane();
+	private final JPanel scrollElements = new JPanel();
+	JScrollPane tableHolonElementScrollPane = new JScrollPane();
 
 	// In this section are all the properties that correspond to the clicked
 	// HolonObject, such as connections, name, Type, etc.
@@ -266,10 +267,13 @@ public class GUI implements CategoryListener {
 		 * End of right container setup
 		 */
 		scrollProperties.setViewportView(tableProperties);
-		scrollElements.setViewportView(tableHolonElement);
+		tableHolonElementScrollPane.setViewportView(tableHolonElement);
 		scrollGraph.setViewportView(testgraph);
-
-		scrollElements.setRowHeaderView(panel_HolonEl);
+		
+		scrollElements.setLayout(new BorderLayout(0,0));
+		scrollElements.add(panel_HolonEl, BorderLayout.NORTH);
+		scrollElements.add(tableHolonElementScrollPane);		
+		
 		panel_HolonEl.setLayout(new BoxLayout(panel_HolonEl, BoxLayout.X_AXIS));
 		toolBarHolonEl.setFloatable(false);