Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- table.setRowFactory(row -> new TableRow<Person>() {
- @Override
- public void updateItem(Person item, boolean empty) {
- super.updateItem(item, empty);
- if (item == null || empty) {
- } else {
- if (item.getFirstName().equals("Jacob")) {
- setStyle("-fx-background-color: yellow");
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement