Issue
I have a JavaFx project and am using the control CheckListView
Is there a way to code this so that the control allows the user to only select ONE option from the checklistview
Solution
You can do something like:
checkListView.getCheckModel().getCheckedIndices().addListener(new ListChangeListener<Integer>() {
@Override
public void onChanged(javafx.collections.ListChangeListener.Change<? extends Integer> c) {
while (c.next()) {
if (c.wasAdded()) {
// disable the rest of the cells
}
}
}
});
Answered By - Yan.F