Problems with getCheckedItems() method when using ControlsFX
posted 1 year ago
I'm reviewing the code of a friend that was developing a tool using ControlsFX, so I installed NetBeans + Java 8, and added to the imported project ControlsFX-8.20.7 library, but I found several errors in only 1 of the project files.
The error is the following:
error: cannot find symbol
List<String> listNoAccess = checkList_NoAccess.getCheckModel().getCheckedItems();
symbol: method getCheckedItems()
location: class MultipleSelectionModel<String>
Notice that checkList_NoAccess was declared as follows:
private CheckListView<String> checkList_NoAccess;
And the error was found in the following code line: List<String> listNoAccess = checkList_NoAccess.getCheckModel().getCheckedItems();
when I was reviewing all the methods of getCheckModel() I got a list without getCheckedItems() and also clearChecks()
Searching for the web I couldn't find any useful info, and I'm a beginner developer, so I don't know how to use ControlsFX, so I need help here.