• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with getCheckedItems() method when using ControlsFX

 
Ronald Sanchez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

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.

Thanks in advance.
 
Campbell Ritchie
Marshal
Posts: 53140
124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Please have a look at the methods of MultipleSelectionModel, where you won't find that method. You will find a method with a similar name, however.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!