public void setup () { super.setup (); setLayout (new FlowLayout ()); if (valueCurr>valueMax) valueCurr=valueMax; cb=new JComboBox (options); cb.setSelectedIndex (valueCurr - valueMin); cb.addItemListener (new ItemListener () { public void itemStateChanged (ItemEvent e) { valueCurr=cb.getSelectedIndex () + valueMin; sendSysex (); } } );  jlabel=(new JLabel (label)); add (jlabel); cb.setMaximumSize (new Dimension (125,25)); add (cb);
public void setup() { super.setup(); setLayout(new FlowLayout()); if (valueCurr > valueMax) valueCurr = valueMax; cb = new JComboBox(options); cb.setSelectedIndex(valueCurr - valueMin); cb.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { valueCurr = cb.getSelectedIndex() + valueMin; sendSysex(); } }); jlabel = new JLabel(label); add(jlabel); cb.setMaximumSize(new Dimension(125, 25)); add(cb);
    public void setup ()    {        super.setup ();        setLayout (new FlowLayout ());        if (valueCurr>valueMax)            valueCurr=valueMax;        cb=new JComboBox (options);        cb.setSelectedIndex (valueCurr - valueMin);        cb.addItemListener (new ItemListener ()        {            public void itemStateChanged (ItemEvent e)            {                valueCurr=cb.getSelectedIndex () + valueMin;                sendSysex ();            }        }        );                jlabel=(new JLabel (label));        add (jlabel);        cb.setMaximumSize (new Dimension (125,25));        add (cb);            }