/** * Create a combo box and add it to the panel. */ public JComboBox createComboBox(String name, Object[] values) { return createComboBox(name, values, false, 0); }
PropertiesPanel pp = new PropertiesPanel(); cbsername = pp.createComboBox("Required service name:", null); cbmethodname = pp.createComboBox("Method name", null); cbmethodname.setRenderer(new BasicComboBoxRenderer()
final JComboBox model = modelpanel.createComboBox("Model", SUtil.EMPTY_STRING_ARRAY, true, 0); final JComboBox factory = modelpanel.createComboBox("Factory", SUtil.EMPTY_STRING_ARRAY, true, 0); final JComboBox config = modelpanel.createComboBox("Configuration", SUtil.EMPTY_STRING_ARRAY, false, 0); config.setEnabled(false); JButton[] buts = modelpanel.createButtons("buts", new String[]
PropertiesPanel pp = new PropertiesPanel(); cbsername = pp.createComboBox("Required service name:", null); cbmethodname = pp.createComboBox("Method name", null); cbmethodname.setRenderer(new BasicComboBoxRenderer()
slogantf = pp.createTextField("Current slogan:"); moodtf = pp.createTextField("Current mood:"); JComboBox jmb = pp.createComboBox("Select new mood: ", new Mood[]{Mood.SAD, Mood.HAPPY, Mood.ANGRY, Mood.DISAPPOINTED}); jmb.addItemListener(new ItemListener()
mbox = pp.createComboBox("Method name", null); mbox.setRenderer(new BasicComboBoxRenderer()
final JComboBox cb = pp.createComboBox("Multi instance: ", new String[]{MSubProcess.SUBPROCESSTYPE_NONE, MSubProcess.SUBPROCESSTYPE_SEQUENTIAL, MSubProcess.SUBPROCESSTYPE_PARALLEL}); cb.addItemListener(new ItemListener() final JComboBox pa = pp.createComboBox("Iterator parameter: ", vals); m.addTableModelListener(new TableModelListener()