From: amwaterhouse Date: Wed, 15 Dec 2004 17:24:14 +0000 (+0000) Subject: GSlider replaces GConservationIncrementPanel X-Git-Tag: Release_2_0~805 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=df7fd106ef48a8c4cb515785d9d82e711b530aa0;p=jalview.git GSlider replaces GConservationIncrementPanel --- diff --git a/src/jalview/jbgui/GConservationIncrementPanel.java b/src/jalview/jbgui/GSliderPanel.java similarity index 75% rename from src/jalview/jbgui/GConservationIncrementPanel.java rename to src/jalview/jbgui/GSliderPanel.java index 1ca6d05..e53870f 100755 --- a/src/jalview/jbgui/GConservationIncrementPanel.java +++ b/src/jalview/jbgui/GSliderPanel.java @@ -4,16 +4,16 @@ import java.awt.*; import javax.swing.*; import java.awt.event.*; -public class GConservationIncrementPanel extends JPanel +public class GSliderPanel extends JPanel { protected JSlider slider = new JSlider(); protected JTextField valueField = new JTextField(); - JLabel jLabel1 = new JLabel(); + protected JLabel label = new JLabel(); JPanel jPanel1 = new JPanel(); BorderLayout borderLayout1 = new BorderLayout(); GridLayout gridLayout1 = new GridLayout(); - public GConservationIncrementPanel() + public GSliderPanel() { try { @@ -44,14 +44,14 @@ public class GConservationIncrementPanel extends JPanel valueField_actionPerformed(e); } }); - jLabel1.setBackground(new Color(212, 208, 236)); - jLabel1.setFont(new java.awt.Font("Verdana", 0, 11)); - jLabel1.setOpaque(true); - jLabel1.setHorizontalAlignment(SwingConstants.CENTER); - jLabel1.setText("Enter the value by which to decrease conservation colour intensity"); + label.setBackground(new Color(212, 208, 236)); + label.setFont(new java.awt.Font("Verdana", 0, 11)); + label.setOpaque(true); + label.setHorizontalAlignment(SwingConstants.CENTER); + label.setText("set this label text"); jPanel1.setLayout(borderLayout1); gridLayout1.setRows(2); - this.add(jLabel1, null); + this.add(label, null); this.add(jPanel1, null); jPanel1.add(valueField, BorderLayout.EAST); jPanel1.add(slider, BorderLayout.CENTER);