I am not able to manage the background of disabled text Field; the best I've managed to get is adding to a css asset file this (copied from pastebin.com):
this works (partially) but in the log I have this error:
WARNING: Could not resolve '-fx-disabled-opacity' while resolving lookups for '-fx-opacity' from rule '*.text-field:disabled' in stylesheet jar:file:/C:/Sviluppo/B4J/formgen/Objects/formgen.jar!/Files/sbFgen.css
ago 11, 2017 8:57:29 AM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-disabled-opacity' while resolving lookups for '-fx-opacity' from rule '*.text-field:disabled' in stylesheet jar:file:/C:/Sviluppo/B4J/formgen/Objects/formgen.jar!/Files/sbFgen.css
The background color of a not enabled TextField is darked; I used a not editable TextField for see a desired color.
Since I was not able to align a text on label to right, I used a non-editable TextField.
Giovanni Rossati