5 import java.awt.event.*;
7 public class GConservationIncrementPanel extends JPanel
9 protected JSlider slider = new JSlider();
10 protected JTextField valueField = new JTextField();
11 JLabel jLabel1 = new JLabel();
12 JPanel jPanel1 = new JPanel();
13 BorderLayout borderLayout1 = new BorderLayout();
14 GridLayout gridLayout1 = new GridLayout();
16 public GConservationIncrementPanel()
27 private void jbInit() throws Exception
29 this.setLayout(gridLayout1);
30 slider.setMajorTickSpacing(10);
31 slider.setMaximum(50);
32 slider.setMinorTickSpacing(1);
33 slider.setPaintTicks(true);
34 slider.setBackground(new Color(212, 208, 236));
35 slider.setFont(new java.awt.Font("Verdana", 0, 11));
36 valueField.setFont(new java.awt.Font("Verdana", 0, 11));
37 valueField.setMinimumSize(new Dimension(6, 21));
38 valueField.setPreferredSize(new Dimension(60, 21));
39 valueField.setText("");
40 valueField.addActionListener(new java.awt.event.ActionListener()
42 public void actionPerformed(ActionEvent e)
44 valueField_actionPerformed(e);
47 jLabel1.setBackground(new Color(212, 208, 236));
48 jLabel1.setFont(new java.awt.Font("Verdana", 0, 11));
49 jLabel1.setOpaque(true);
50 jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
51 jLabel1.setText("Enter the value by which to decrease conservation colour intensity");
52 jPanel1.setLayout(borderLayout1);
53 gridLayout1.setRows(2);
54 this.add(jLabel1, null);
55 this.add(jPanel1, null);
56 jPanel1.add(valueField, BorderLayout.EAST);
57 jPanel1.add(slider, BorderLayout.CENTER);
60 protected void valueField_actionPerformed(ActionEvent e)