Parcourir la source

first graph now has correct size

dominik.rieder il y a 7 ans
Parent
commit
7f84587cc9
2 fichiers modifiés avec 6 ajouts et 5 suppressions
  1. 1 1
      src/ui/view/StatPanel2.java
  2. 5 4
      src/ui/view/StatisticGraphPanel.java

+ 1 - 1
src/ui/view/StatPanel2.java

@@ -687,7 +687,7 @@ public class StatPanel2 extends JSplitPane implements GraphListener {
 
 		btnAdd.setBounds(10, 175, 51, 23);
 		editPanel.add(btnAdd);
-		splitPane.setDividerLocation(170);
+		splitPane.setDividerLocation(220);
 		
 		//============================= WINDOWBUILDER COMPONENTS END =================//
 		

+ 5 - 4
src/ui/view/StatisticGraphPanel.java

@@ -79,10 +79,11 @@ public class StatisticGraphPanel extends JPanel {
 
 		// ******************** Component Propertys ***************//
 		// Graph
-		// this.setPreferredSize(new Dimension(280, 300));
-		sGraph.setPreferredSize(new Dimension(280, 180));
-		sGraph.setMinimumSize(new Dimension(100, 150));
-		// this.setMaximumSize(new Dimension(1000, 1000));
+		this.setPreferredSize(new Dimension(300, 200));
+		//sGraph.setPreferredSize(new Dimension(200, 200));
+		//sGraph.setMinimumSize(new Dimension(100, 150));
+		this.setMaximumSize(new Dimension(700, 200));
+		this.setMinimumSize(new Dimension(300, 200));
 
 		// Graph Name
 		graphNameLabel = new JLabel(graphName);