JAL-1340 ensure slider value wide enough to see three figures
authorJim Procter <jprocter@dundee.ac.uk>
Mon, 28 Apr 2014 12:28:17 +0000 (13:28 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 28 Apr 2014 12:28:17 +0000 (13:28 +0100)
src/jalview/appletgui/SliderPanel.java

index 340bb64..bda4489 100644 (file)
@@ -315,8 +315,9 @@ public class SliderPanel extends Panel implements ActionListener,
     slider.setFont(new java.awt.Font("Verdana", 0, 11));
     slider.setOrientation(0);
     valueField.setFont(new java.awt.Font("Verdana", 0, 11));
-    valueField.setText("      ");
-    valueField.addActionListener(this);
+    valueField.setText("   ");
+    valueField.addActionListener(this); 
+    valueField.setColumns(3);
     label.setFont(new java.awt.Font("Verdana", 0, 11));
     label.setText(MessageManager.getString("label.set_this_label_text"));
     jPanel1.setLayout(borderLayout1);