I am currently developing a JavaFX
application and there I used a ButtonBar
with some Buttons. When I run the program, the first Button
is always focused. How can I disable that setting?
P.S.: I used some CSS
code to change the default appearance and that brown box conveys that the button is focused.
You can take away the focus from the button with
otherNode.requestFocus()
:Like in this example: