Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Removing selected row in TableView

 
Jc Frane
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am a beginner in javafx.

So, my situation is like this:

I have my TableView with a CheckBox in one of its TableColumn and I named it productStatus which determine whether the product is already claimed if the checkbox is checked.
What I wanted is to remove the selected row everytime the checkbox is checked. I used ObservableList in populating the table.

I have a model class named Orders and some private properties including the BooleanProperty for productStatus. Then I add a listener to this property. However all I can do to it is to print whether the checkbox is selected and deselected. I ran in many problems everytime I try to retrieve the selected item in my observablelist and delete it.

Can somebody help me?

Thank you so much! Cheers!
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have mentioned that you ran into many problems - what are those? exceptions? Can you tell us more about that?

Also, a SSCCE would be useful...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic