1
Good night, you guys!
I’m building a program in Javafx, but I’m still very young at it. So I have a tableview with information about students. This tableView has a "tcbCondicate" column (whether or not the payment has been paid) that stores boolean data (the table renders these inputs as checkbox). Thus, the user can click the checkbox when the student pays the monthly fee.
Once you finish clicking on the checkbox of all students who paid, the user must click on the "update data" button, which must read the table and update the payment data in the database.
I did a lot of research, but I just find the opposite: passing data from the database to popular table. How can I read each of the items in my table and pass to the database at once?
I thought about using listview.foreach(item -> action) to be able to go through each of the items in the table, but I don’t know how to get it to get the information of the item you are going through.
You could help me, pleeease!!!
Are you using JPA or JDBC? It also helps to place the object code that will be persisted and the tableview code.
– Gustavo Fragoso