Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. table.setRowFactory(row -> new TableRow<Person>() {
  2. @Override
  3. public void updateItem(Person item, boolean empty) {
  4. super.updateItem(item, empty);
  5. if (item == null || empty) {
  6.  
  7. } else {
  8. if (item.getFirstName().equals("Jacob")) {
  9. setStyle("-fx-background-color: yellow");
  10. }
  11. }
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement