• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems with getCheckedItems() method when using ControlsFX

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic