Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Count rows at TableColumn of TableView JavaFX

 
Ricardo Marzano
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys. What´s up? I have 2 very, very hard questions. 1st: The JavaFX TableColumn have a method to count the rows in a TableColumn that have data (values) on it? Example: I have a table compose by two columns and 5 rows. In first column I have in three rows, data (values). I want to know if have a way to count this rows that are filled.
2nd: If have a way (method) that return the number of rows in a column, how to get these values and put in a List of String´s (List<String>)? So that cast in double variable to sum, and them, back to String?
The problem is that I need to make a simple application to count the values in column, sum and at finnaly show in a TextField.

This is possible with TableColumn for TableView in a JavaFX? Thank´s a lot for anyone can help me! Regards for all.
 
Milan Gogic
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understood you well, you need number of filled tableview rows?
For getting number of rows in table you can try with :



For getting values of cells from tableview use :



For string to double conversion :


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic