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

Cannot dismiss JOptionPane yes_no_cancel dialog by pressing 'y' need Alt down

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs



      Name: js151677 Date: 05/28/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      When a YES_NO_CANCEL JOptionPane dialog appears (Windows platform) it is not possible to dismiss the dialog by pressing 'y' for yest, or 'n' for "no". The user has to hold down ALT while pressing these keys. This is not default behaviour for this type of dialog in Windows. As an exaple run Windows notepad and try to exit without saving and a dialog appear. You don't need to hold down ALT for that dialog to be dismissed with a 'n'.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Open SwingSet2 .
      Go to the JOptionPane demo section.
      Click the "show confirmation dialog" button.
      Press 'n' (whithout holding down ALT)


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The dialog should be dismissed by pressing 'n'
      ACTUAL -
      Nothing happens

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Open SwingSet2 .
      Choose Windows Style Look and Feel from the Look and Feel Menu.
      Go to the JOptionPane demo section.
      Click the "show confirmation dialog" button.
      ---------- END SOURCE ----------
      (Incident Review ID: 275404)
      ======================================================================

            shickeysunw Shannon Hickey (Inactive)
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: