ComboBoxWidget

available constructors:
ComboBoxWidget(IPatch patch, IParameter param)
ComboBoxWidget(String label, IPatch patch, int min, IParamModel pmodel, ISender sender, Object[] options)
ComboBoxWidget(String label, IPatch patch, IParamModel pmodel, ISender sender, Object [] options)

addWidget(
    lfoPane,
    new ComboBoxWidget(
        "LFO Wave",
        patch,
        new ParamModel(patch,106),
        new VcedSender(59),
        new String []{"Saw Up","Square","Triangle","S/Hold"}
    ),
    0,
    6,
    1,
    1,
    26
);

example:
ComboBoxWidget.png

import core.*;
 
/**
 *
 * @author peter
 */
public class SPD11PadEditor extends PatchEditorFrame {
    final String[] options = new String[]{"option 1","option 2","option 3","option 4"};
    public SPD11PadEditor (Patch pad){
        super("SPD11 Pad editor", pad);
        addWidget(scrollPane, // the parent JComponent
            new ComboBoxWidget(
            "On / Off",
            pad,
            new ParamModel(
            pad,
            1),
            new SPD11Sender(1), options
            ),
            0, // gridx
            0, // gridy
            1, // gridwidth
            1, // gridheight
            1); // slidernum
    }
 
 
}

Back to sysexWidgets