-1

The one in the picture is what i need , whenever I press sell button the quatity in the backgroud tableview column should change What makes tableview refreshed automatically detecting the change in database value without running the program from scratch.

  • 4
    Possible duplicate of [JavaFX 2.1 TableView refresh items](http://stackoverflow.com/questions/11065140/javafx-2-1-tableview-refresh-items) – ItachiUchiha Oct 20 '15 at 12:45
  • A `TableView` will automatically update when you change the data in its `items` list. You need to make your question more specific if you have code that is not working. – James_D Oct 20 '15 at 14:07

1 Answers1

0

you attached an observableList to the Tableview, so it inmediatly detects any change and update the view. So, the thing here is you have to maintain updated your observableList, you should find a way to detects change in you database. If you database is only modified for you application this should not be a hard task to complete, on the other hand, if it's modified for another system I suppossed you have to maintain the list consulting the database every often.

Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115