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

showConfirmDialog and keyboard - Y,N require ALT, ESC "No's"

XMLWordPrintable

    • Fix Understood
    • x86
    • windows_xp



      Name: sh120115 Date: 01/15/2004


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


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

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Windows look and feel

      A DESCRIPTION OF THE PROBLEM :
      for showConfirmDialog you must press ALT+Y/N for yes/no - a windows YESNOCANCEL msgbox allows pressing just Y,N only (standard Windows dialog mnemonics really)
      also, pressing ESC or clicking the windows' Close (x) button activates the No response from the dialog - a windows msgbox returns Cancel for these actions

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      JOptionPane.showConfirmDialog( mainGui, "Document was modified. Save?" );


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      pressing Y,N should activate Yes,No
      pressing ESC (or clicking x) should activate Cancel

      ACTUAL -
      pressing Y,N is ignored - need to press ALT+Key
      pressing ESC (or clicking x) returns No

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      JOptionPane.showConfirmDialog( mainGui, "Document was modified. Save?" );

      ---------- END SOURCE ----------
      (Incident Review ID: 233290)
      ======================================================================

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

              Created:
              Updated:
              Imported:
              Indexed: