tweaked dialog layout. should consider refactoring
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 26 Sep 2011 10:00:20 +0000 (11:00 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 26 Sep 2011 10:00:20 +0000 (11:00 +0100)
src/jalview/gui/AnnotationExporter.java

index e50859d..8248647 100755 (executable)
@@ -61,7 +61,7 @@ public class AnnotationExporter extends JPanel
     frame = new JInternalFrame();\r
     frame.setContentPane(this);\r
     frame.setLayer(JLayeredPane.PALETTE_LAYER);\r
-    Desktop.addInternalFrame(frame, "", 260, 125);\r
+    Desktop.addInternalFrame(frame, "", frame.getPreferredSize().width, frame.getPreferredSize().height);\r
   }\r
 \r
   public void exportFeatures(AlignmentPanel ap)\r
@@ -225,7 +225,8 @@ public class AnnotationExporter extends JPanel
 \r
   private void jbInit() throws Exception\r
   {\r
-    this.setLayout(flowLayout1);\r
+    this.setLayout(new BorderLayout());\r
+    \r
     toFile.setText("to File");\r
     toFile.addActionListener(new ActionListener()\r
     {\r
@@ -273,8 +274,8 @@ public class AnnotationExporter extends JPanel
     buttonGroup.add(jalviewFormat);\r
     buttonGroup.add(GFFFormat);\r
     buttonGroup.add(CSVFormat);\r
-    this.add(jPanel3, null);\r
-    this.add(jPanel1, null);\r
+    this.add(jPanel3, BorderLayout.CENTER);\r
+    this.add(jPanel1, BorderLayout.SOUTH);\r
   }\r
 \r
   JPanel jPanel1 = new JPanel();\r