index

Javafx: get a TableView string

How do I get a string, knowing its number, and set its style (or add a class)? For example, in a table of 10 rows, I need to ... creating a table, but after, when the table is already ready. I click on the button, and the 3rd line is highlighted in red.