In javaFX how do I capture the click event in the column title to organize the records?

1

I have a tableView and it has 5 columns. The first two columns are written with records I took from the database and the other three are just buttons that I enter when the table is created.

I created an event so that the table buttons only appear when I click on the corresponding record. So that's the problem. When I click to organize the table those buttons that were to appear with the current index do not appear instead the event maintains the previous order, ie it makes the buttons appear in the list in the previous index that the registry was: / p>

I know I can solve this problem by calling the method responsible for the action of appearing and disappearing from the buttons, but this after I organize the column.

Returning the question to the question.

How do I add an event when clicking the title of a column in a table in javaFX?

    
asked by anonymous 31.05.2015 / 14:00

0 answers