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
{
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);