I currently have a JavaFX button that is set as the Default Button, allowing users to select it with the Enter key. The button has a blue background:
However, I would like to change its appearance to that of a normal button:
After reviewing the JavaFX CSS Guide, it seems there is only one feature that can be overridden (-fx-base
).
Adjusting this feature sometimes causes unexpected results - it may remove the button's gradient or make it transparent.
Is there an easy way to simply remove the styling of the Default Button?