List of usage examples for javafx.scene.control Tab selectedProperty
public final ReadOnlyBooleanProperty selectedProperty()
From source file:mesclasses.view.JourneeController.java
private void initTab(Tab tab, SmartGrid grid) { tab.getContent().setManaged(false);/*from w w w. j a v a 2 s. c om*/ tab.getContent().setVisible(false); tab.selectedProperty().addListener((ob, o, n) -> { if (n) { selectTab(tab, grid); } else { unselectTab(tab); } }); }