I have a TabPane with several Tabs. If the results of an operation in the Tab failed, I want to set the Tab Label to a Fill red or perhaps the texture to hashed (for those with color blindness). I want to reset the Color back to its default, later.
From reading some of the questions here, one can statically set it using a style sheet.
#MyTabPane .tab *.tab-label {
-fx-text-fill: white;
}
How would one access the Tab label and set it's color/texture dynamically?
tab.setStyle("??");
ADDITIONS BY ELLTZ
How can one use inline Styles stated above to change the Paint of both the Label with style class tab-label and the Button(StackPane) also tab-close-button
code examples needed