dialog box appears in centre of desktop window
authorjprocter <Jim Procter>
Wed, 14 Apr 2010 14:39:33 +0000 (14:39 +0000)
committerjprocter <Jim Procter>
Wed, 14 Apr 2010 14:39:33 +0000 (14:39 +0000)
src/jalview/gui/FeatureColourChooser.java

index 24662c7..1e26a3a 100644 (file)
@@ -72,7 +72,9 @@ public class FeatureColourChooser extends JPanel
     this.type = type;
     ap = fr.ap;
     frame = new JDialog(Desktop.instance,true);
-    frame.setSize(480,185);
+    frame.setTitle("Graduated Feature Colour for "+type);
+    Rectangle deskr = Desktop.instance.getBounds();
+    frame.setBounds(new Rectangle((int) (deskr.getCenterX()-240),(int) (deskr.getCenterY()-92),480,185));
     frame.setContentPane(this);
     //frame.setLayer(JLayeredPane.PALETTE_LAYER);
     //Desktop.addInternalFrame(frame, "Graduated Feature Colour for "+type, 480, 145);