jlabel= (new JLabel(label)); add (jlabel,BorderLayout.WEST); if (valueCurr>valueMax) valueCurr=valueMax; slider=new JSlider(JSlider.HORIZONTAL,valueMin,valueMax,valueCurr);
jlabel = new JLabel(label); add(jlabel, BorderLayout.WEST); if (valueCurr > valueMax) valueCurr = valueMax; slider = new JSlider(JSlider.HORIZONTAL, valueMin, valueMax, valueCurr);
  public void setup()  {  super.setup();    setLayout(new BorderLayout());   jlabel= (new JLabel(label));   add (jlabel,BorderLayout.WEST);   if (valueCurr>valueMax) valueCurr=valueMax;    slider=new JSlider(JSlider.HORIZONTAL,valueMin,valueMax,valueCurr);    slider.addChangeListener(new ChangeListener() {	   public void stateChanged(ChangeEvent e) {	      setValue(slider.getValue());	      sendSysex();              text.setText(options[valueCurr]);                               }});   text = new JTextField(options[valueCurr],4);    slider.setMinimumSize(new Dimension(75,25));    slider.setMaximumSize(new Dimension(125,25));    add (slider,BorderLayout.CENTER);add(text,BorderLayout.EAST);    text.setEditable(false);          }