• 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

ListView MultipleSelection in Eclipse Scene Builder not working ???

 
Ranch Hand
Posts: 271
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
QUESTION: How do I get ListView to display multiple selections when using Scene Builder in Eclipse??

I am using Scene Builder in Eclipse to help me implement MVC and running into problems with Scene Builder
Please see .jpg underneath all this for a visual...

Here is the Controller code, I have been trying out variations, hence the "comment-out" bits...


The code for Main()


The FXMLDocument
ListViewProblem.JPG
[Thumbnail for ListViewProblem.JPG]
ListView with multiple selection works well using vanilla JavaFX codes, but does not display the selected items when using Scene Builder.
InsideSceneBuilder.JPG
[Thumbnail for InsideSceneBuilder.JPG]
In Scene Builder, I clicked on the Java class
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure onEditStart is the action you want to listen to?  What happens if you change it to onMouseClicked?

Also, I don't know if this is related, but you are calling listViewItemSelected on the onDragDetected action of the main AchorPane.
 
AhFai Chan
Ranch Hand
Posts: 271
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ohhh
I had a few checked without filling out the methods in the Controller when I was testing.
I did very much want to edit the ListView items and upload back to the cloud later.
I am not going to work this weekend.
Thank-you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic