From 83c07da5ee650b0fc09197ccf7a43295e7eaf324 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 26 Sep 2011 11:00:20 +0100 Subject: [PATCH] tweaked dialog layout. should consider refactoring --- src/jalview/gui/AnnotationExporter.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/AnnotationExporter.java b/src/jalview/gui/AnnotationExporter.java index e50859d..8248647 100755 --- a/src/jalview/gui/AnnotationExporter.java +++ b/src/jalview/gui/AnnotationExporter.java @@ -61,7 +61,7 @@ public class AnnotationExporter extends JPanel frame = new JInternalFrame(); frame.setContentPane(this); frame.setLayer(JLayeredPane.PALETTE_LAYER); - Desktop.addInternalFrame(frame, "", 260, 125); + Desktop.addInternalFrame(frame, "", frame.getPreferredSize().width, frame.getPreferredSize().height); } public void exportFeatures(AlignmentPanel ap) @@ -225,7 +225,8 @@ public class AnnotationExporter extends JPanel private void jbInit() throws Exception { - this.setLayout(flowLayout1); + this.setLayout(new BorderLayout()); + toFile.setText("to File"); toFile.addActionListener(new ActionListener() { @@ -273,8 +274,8 @@ public class AnnotationExporter extends JPanel buttonGroup.add(jalviewFormat); buttonGroup.add(GFFFormat); buttonGroup.add(CSVFormat); - this.add(jPanel3, null); - this.add(jPanel1, null); + this.add(jPanel3, BorderLayout.CENTER); + this.add(jPanel1, BorderLayout.SOUTH); } JPanel jPanel1 = new JPanel(); -- 1.7.10.2