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

Focus not working on JOptionPane dialogs when using TAB key.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs

      Description

      FULL PRODUCT VERSION :
      JRE 1.5.0_04

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP

      A DESCRIPTION OF THE PROBLEM :
      When TAB is clicked in a JOptionPane dialog to toggle between the buttons, the button does not take focus. It 'sort of' looks like it does but when you hit Enter it is always the OK button even if you TABBED to the Cancel button.

      I am having all sorts of focus problems in 1.5 which I have never had before.



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a JOptionPane Yes / No dialog. When the dialog opens tab to No and hit Enter. Check the result and you will see the dialog says Yes was clicked.

      If you physically click No then the dialog acknowledges No was clicked but when you TAB to No the dialog still thinks Yes was clicked.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      JOptionPane dialogs are useless if TAB does not work to set focus so I have to create my own dialogs which is crazy for simple things.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shickeysunw Shannon Hickey (Inactive)
              Reporter:
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: