I know that your can give focus to a node in javafx by doing node.requestFocus(); but is there a way to take away focus from a node in javafx or prevent focus on an
If you have another node then you can remove focus from your node and give it to another with this.
otherNode.requestFocus();
By doing this you won't need to disable or enable your original node.
Some nodes such as a Label won't look different when they have focus, so this can make it appear as if focus was removed.