From 02a2eeecb1ea2a4afc81249ce8edaf7843dec3f5 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 28 Apr 2014 13:28:17 +0100 Subject: [PATCH] JAL-1340 ensure slider value wide enough to see three figures --- src/jalview/appletgui/SliderPanel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/appletgui/SliderPanel.java b/src/jalview/appletgui/SliderPanel.java index 340bb64..bda4489 100644 --- a/src/jalview/appletgui/SliderPanel.java +++ b/src/jalview/appletgui/SliderPanel.java @@ -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); -- 1.7.10.2