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

Busy GlassPane won't intercept key events

XMLWordPrintable

    • Cause Known
    • x86
    • windows_xp

      Name: dk106046 Date: 04/30/2004

      Operating System(s):
      Win32, Microsoft Windows XP [Version 5.1.2600]

      Full JDK version(s) (from java -version):
      All versions. Sun 1.3.1, 1.4.1, 1.4.2 and 1.5.0 beta.
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

      The testers of our product noticed that a busy GlassPane with mouse and key listeners fails to intercept key events. When the GlassPane
      is visible it is still possible to navigate the window with the keys and activate controls.

      1. Copy attached files into a temporary directory.
      2. Compile MyTestFrame.java
      3. Use java.exe to run MyTestFrame. Click on the "Set Busy" button.
      4. The BusyGlassPane will be visible for 10 seconds.
      Notice that the mouse events to the window are intercepted by the
      BusyGlassPane, but the key events are not. While the BusyGlassPane
      is visible, the navigation keys still allow the user to navigate
      to and activate the buttons.

      ======================================================================
      ###@###.### 10/4/04 18:46 GMT

            Unassigned Unassigned
            dkorbel David Korbel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: