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

No property change is fired for Component.setCursor

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :


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

      A DESCRIPTION OF THE PROBLEM :
      java version "1.5.0_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Add a property change listener to a component.
      Invoke setCursor.
      No property change is fired.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Since the cursor is as much a property of a component as the background color, I would expect a property change to be fired when the cursor is changed.

      I was implementing a visual overlay with a non-opaque component (like a badge icon or tinting effect, see rabbit-hole.blogspot.com/2006/04/decoratoroverpainter-update.html). The overpainter's cursor must match the underlying component's cursor to avoid cursor flicker or obscuring the underlying component's cursor altogether.
      ACTUAL -
      No property change is fired.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Recompile source for Component to include the line

      firePropertyChange("cursor", oldCursor, newCursor)

        Attachments

          Activity

            People

            Assignee:
            volk Konstantin Voloshin (Inactive)
            Reporter:
            dav Andrei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: