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

ProgressMonitor - ESC key does not set cancelled state

XMLWordPrintable

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

      A DESCRIPTION OF THE PROBLEM :
      When the ProgressMonitor window is open, there are 3 ways to close the window.
      1. Click cancel button with mouse
      2. Close the window (e.g. 'X' in the widow's title bar)
      3. Press ESC

      The first 2 ways set the isCancelled() flag, the third does not.



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Can be reproduced using the "How to use progress bars" tutorial page.

      The web-start link is currently:
      http://java.sun.com/docs/books/tutorialJWS/uiswing/components/example-1dot4/ProgressMonitorDemo.jnlp

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      isCancelled() returns true
      ACTUAL -
      isCancelled() returns false

      REPRODUCIBILITY :
      This bug can be reproduced always.

            Unassigned Unassigned
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: