Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5299

Wrong dialog button pressed when using FlatLaf

    XMLWordPrintableJSON

    Details

      Description

      When FlatLaf is used, then in dialogs wrong button is activated using keyboard navigation.

      Steps to reproduce:

      1. Open NetBeans and select FlatLaf look & feel
      2. Open any file
      3. Make any change in file
      4. Exit NetBeans - clicking Close button or File > Exit
      5. Dialog Save will show up
      6. Press Tab key - Save button will be highlighted
      7. Press Enter

      Actual behavior:
      Cancel button is activated - file is not saved and NetBeans are not closed

      Expected behavior:
      Save button is activated - file is saved and NetBeans are closed.
       
      Same problem is also with other dialogs.
      When GTK+ LaF is used, then correct dialog button is activated.

      Tested in NetBeans 12.2 and 12.3 beta 1.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                devcharly Karl Tauber
                Reporter:
                Kacer Tomáš Procházka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m