• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX: data in Table View

 
Namrita Mohanty
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Am using JavaFX to read a data a database ... I see the data when i print it on the console of the IDE but unable to get it displayed in the Table View. I have included all the code in the main class.
Please Help!!! (Let me know if anything else is needed to debug, am new to FX)

 
Namrita Mohanty
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please help on this!!!
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I don't see a table.getColumns().setAll() call in your code. Did you check out the doc?
 
Marcus Kuhn
Greenhorn
Posts: 6
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

if you not already solved this then
change line 84: table.setItems(data);
to table.getItems().addAll(data);.
It should work after that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic