Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8159120

Toggle default button visuals based on focus state in scene

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • None
    • javafx
    • None

      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 to JDK-8139509. There are no behavioural changes that stem from this.

            jgiles Jonathan Giles
            jgiles Jonathan Giles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: