Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
Sheriff
Posts: 51432
87
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic