node = new node() { public void requestFocus() { } };
Now this will override the focus, and the node will NEVER be able to focus. You can also (as indicated above) disable the node with:
node.setDisable(true);
If you need to focus later:
node.setDisable(false); node.requestFocus();
I decided to update my answer to this question with another option. If at the beginning of the program you focus on another node, you can set that a certain node will not move and it will not receive focus.
node.setFocusTraversable(false);
source share