• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

ListView MultipleSelection in Eclipse Scene Builder not working ???

 
Ranch Hand
Posts: 148
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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: 6033
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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: 148
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!