There are two tables:
@FXML TableView<FrameGroupIntersections> tvOldGroups; @FXML TableView<FrameGroupIntersections> tvNewGroups; The data in them is related in class:
public class FrameGroupIntersections { private FrameGroup group; private ObservableMap<FrameGroupIntersections,IntTypeInfoWrapper> intersections; private BooleanProperty hasErr; FrameGroupIntersections (FrameGroup group, Map<FrameGroupIntersections,IntTypeInfoWrapper> intersections){ this.group = group; hasErr = new SimpleBooleanProperty(false); setIntersections(intersections); } FrameGroupIntersections(FrameGroup group){ this(group,null); } } Those. FrameGroupIntersections from the left table has in the map of intersections a link to FrameGroupIntersections from the right, and vice versa.
It is necessary that when selecting any of the FrameGroupIntersections in the adjacent table, the intersections associated with it are highlighted in some color, i.e. TableRow.styleProperty() changed. Tell me, how can this be achieved?
