title: Colouring table row in JavaFX
body: <p>This question is related to <a href="https://stackoverflow.com/questions/32088011/javafx-coloring-tableview-row-and-formatting-the-cell-text/32090142?noredirect=1#comment52079633_32090142">this</a>. Now I want to colour the row where field value equals to some value. </p>
  
  <pre><code>    @FXML
      private TableView&lt;FaDeal&gt; tv_mm_view;
      @FXML
      private TableColumn&lt;FaDeal, String&gt; tc_inst;
      tc_inst.setCellValueFactory(cellData -&gt; new SimpleStringProperty(""+cellData.getValue().getInstrumentId()));
  
      tc_inst.setCellFactory(column -&gt; new TableCell&lt;FaDeal, String&gt;() {
              @Override
              protected void updateItem(String item, boolean empty) {
                  super.updateItem(item, empty);
  
                  if (item == null || empty) {
                      setText(null);
  
                  } else {
  
                      setText(item);
                      // Style row where balance &lt; 0 with a different color.
  
                      TableRow currentRow = getTableRow();
                      if (item.equals("1070")) {
                          currentRow.setStyle("-fx-background-color: tomato;");
  
                      } else currentRow.setStyle("");
                  }
              }
          });
  </code></pre>
  
  <p>The problem is I don't want to show <code>tc_inst</code> in my table. For this reason I set <code>visible</code> checkbox in <code>SceneBuilder</code> to false. In this case colouring part doesn't work at all. How can hide <code>tc_inst</code> so that colouring works?</p>