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

Default button doesn't work correctly in MetalLAF

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 7
    • client-libs
    • None

      If DefaultButton is setted a couple problems will appear:

      1. A default button doesn't change appearance if another button has focus. But WindowsLAF works in another way: in such situation default button looks like an usual button.

      2. If non-default button has a focus and an user press "Enter" then action of default button will executed! It's an unexpected behaviour.

      Test application is attached.

            Unassigned Unassigned
            rupashka Pavel Porvatov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: