As a follow-up to JDK-8139509, to bring the visuals of JavaFX UIs more in line with what is expected on Windows / Linux platforms, the styling of default buttons should be tweaked.
What happens on Windows (outside of JavaFX) is that the the currently actionable button gets given a blue border. This is often also the button that has the focus, so it also has a dashed border as well. When focus moves to a non-button control, the blue 'actionable' border moves back to the default button.
In the JavaFX context, this means that the default button should only be rendered with its blue background (as in Modena) when there is not focus on another button that is actionable.
This is a visuals-only follow-up toJDK-8139509. There are no behavioural changes that stem from this.
What happens on Windows (outside of JavaFX) is that the the currently actionable button gets given a blue border. This is often also the button that has the focus, so it also has a dashed border as well. When focus moves to a non-button control, the blue 'actionable' border moves back to the default button.
In the JavaFX context, this means that the default button should only be rendered with its blue background (as in Modena) when there is not focus on another button that is actionable.
This is a visuals-only follow-up to
- duplicates
-
JDK-8159120 Toggle default button visuals based on focus state in scene
-
- Closed
-
- relates to
-
JDK-8139509 A buttons onActionEvent must be triggered also on RETURN
-
- Resolved
-