Adding new row with button to javafx tableview

Viewed 19345

I have defined a tableview in fxml. It is something like the following:

SNO Name DOB Action

The Action column would contain buttons in each row with text "delete". I have two questions:

  1. How do I add this delete button to each new row last cell in javafx?
  2. How do I get the index of the row whose delete button is clicked?(So that I can delete the row or do other event handling work)
1 Answers
Related