Example usage for javafx.scene.control Tab setDisable

List of usage examples for javafx.scene.control Tab setDisable

Introduction

In this page you can find the example usage for javafx.scene.control Tab setDisable.

Prototype

public final void setDisable(boolean value) 

Source Link

Document

Sets the disabled state of this tab.

Usage

From source file:org.noroomattheinn.visibletesla.MainController.java

private void setTabsEnabled(boolean enabled) {
    for (Tab t : tabs) {
        t.setDisable(!enabled);
    }//w  ww . ja  v a 2 s .  c o m
    loginTab.setDisable(false); // The Login Tab is always enabled
    prefsTab.setDisable(false); // The Prefs Tab is always enabled
}