问题
Unlike Swing Javafx-8 doesn't appear to have "setEnabled()" methods (or equivalent) for UI controls. Suggestions for workarounds?
回答1:
You can use setDisable() instead of setEnabled() in javaFx..
like button.setDisable(false)
setDisable is a public method for disabling a node, setDisabled is a protected method used only by internal implementations
来源:https://stackoverflow.com/questions/27831409/how-to-setenabled-in-javafx-8