Home > Software engineering >  CheckBoxListComboBox unseelct the selection programatically
CheckBoxListComboBox unseelct the selection programatically

Time:10-21

I am using com.jidesoft.combobox.CheckBoxListComboBox

I made the selection of the checkboxes programatically with

     int[] indecesToSelect =..

     combo.setSelectedIndices(indecesToSelect);

But i dont see any way to unselect any selection.

I tried

     combo.setSelectedItem(item, false);

But this is not unselecting , this is also selecting

Also tried

     combo.getList().clearSelection();

no effect

Please help

CodePudding user response:

use combo.setSelectedIndex(-1); to unselect. Source

  • Related