0

In my application I hava TableView which I'm using to show data from database recieved via Hibernate sql query and then converted to FX ObservableList

planningData = FXCollections.observableArrayList((List<Object[]>) service.getPlanningTableData(from, to));

What I'm trying to do is to smoothly update content of my TableView each 30 sec. Right now I'm just recalling my database method and setting items in tableView like this:

tableView.setItems(planningData) 

But this is useless.

kingkong
  • 1,537
  • 6
  • 27
  • 48

1 Answers1

0

i was having the same problem but simply creating a new database connection to pull the data to populate the tableview worked. But make sure to close the connection so that you wont have a bunch of connections lying there without use.

Naj
  • 723
  • 7
  • 17