I am using the Jide OSS 3.1.1
while using the CheckBoxList, I find that it's missing the getCheckBoxListSectionModel? It's in the documentation but the dot operator reveals no such thing. I'm wonder if this is available only in the paid version??
There is getSelectionModel()
however using this will not fire the selected event.
Object[] options = {"This Element","Similar Elements"};
CheckBoxListWithSelectable checkboxlist = new CheckBoxListWithSelectable(options);
int result = JOptionPane.showConfirmDialog(rootPane, checkboxlist,
"Please Select Action(s) For This Element", JOptionPane.OK_CANCEL_OPTION);
checkboxlist.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
// TODO Auto-generated method stub
System.out.println("selected");
}
});
I am using this method just fine in older version (2.10.*). But looking at the depot for 3.1.1, it is there in the source.
Also, you have it misspelled in your question. I hope you're looking for getCheckBoxListSelectionModel
().