java - JComboBox Multi Choice -
is possible select multiple items in jcombobox if so, how?if not, there way this?
private jcombobox getjcombobox1() { if (jcombobox1 == null) { jcombobox1 = new jcombobox(); jcombobox1.setmodel(new defaultcomboboxmodel(new string[] {"a", "b", "c"})); jcombobox1.addactionlistener(new actionlistener() { public void actionperformed(actionevent arg0) { } }); jcombobox1.setfont(new font("verdana", font.italic, 15)); jcombobox1.setforeground(color.red); jcombobox1.setdoublebuffered(false); jcombobox1.setborder(null); jcombobox1.setenabled(false); jcombobox1.setbounds(314, 181, 176, 25); } return jcombobox1; }
Comments
Post a Comment