title: TableRow style changing by condition
body: <p>There are two tables:</p>
  
  <pre><code>@FXML
  TableView&lt;FrameGroupIntersections&gt; tvOldGroups;
  @FXML
  TableView&lt;FrameGroupIntersections&gt; tvNewGroups;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/v8xuv.png" rel="nofollow"><img src="https://i.stack.imgur.com/v8xuv.png" alt="enter image description here"></a></p>
  
  <p>These are linked in the class:</p>
  
  <pre><code>public class FrameGroupIntersections {
  
      private FrameGroup group;
  
      private ObservableMap&lt;FrameGroupIntersections,IntTypeInfoWrapper&gt; intersections;
  
      private BooleanProperty hasErr;
  
      FrameGroupIntersections (FrameGroup group, Map&lt;FrameGroupIntersections,IntTypeInfoWrapper&gt; intersections){
          this.group = group;
          hasErr = new SimpleBooleanProperty(false);
          setIntersections(intersections);
      }
  
      FrameGroupIntersections(FrameGroup group){
          this(group,null);
      }
      //Other methods
  }
  </code></pre>
  
  <p>i.e. <code>FrameGroupIntersections</code> from left table has link for <code>FrameGroupIntersections</code> from right table in <code>intersections</code> map. Same happens the other way around.</p>
  
  <p>When controller initialize, i recieve two ObservableList as "old" and "new".</p>
  
  <pre><code>class Controller {
      //FXML nodes
      //Lists of intersections
      ObservableList&lt;FrameGroupIntersections&gt; oFgInt;
      ObservableList&lt;FrameGroupIntersections&gt; nFgInt;
  
      public void init(MergeReportDataWrapper dataWrapper){
          this.oFgInt = dataWrapper.getoFgInt();
          this.nFgInt = dataWrapper.getnFgInt();
          //Data binding
      }
  }
  </code></pre>
  
  <p>All intersections in that lists are linked.</p>
  
  <p>It is necessary that when selected some of <code>FrameGroupIntersections</code> in both tables, linked <code>FrameGroupIntersections</code> rows from other table changing own background. Tell me please how this can be done?</p>