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

Native PLAF Rendering Failure: Doesn't visualize hovering over JTree and JTable

    XMLWordPrintable

Details

    Description

      FULL PRODUCT VERSION :
      java version "1.6.0_18"
      Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
      Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7600]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Aero enabled

      A DESCRIPTION OF THE PROBLEM :
      When using the native PLAF, a Swing application is expected to render similar to a native application. This is no working in the following case:

      On Windows 7, when the mouse is hovering over a tree or a table, native applications indicate this hovering by showing the line under the cursor in a "convex" gradient style. But a swing application is not doing so. Actually it doesn't indicate hovering at all.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Enable Aero on Windows 7.
      Create a JTree or JTabled filled with content.
      Hover the mouse over a content line.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Should visualize hovering over the line using a "convex" gradient.
      ACTUAL -
      Is not visualizing hovering at all.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Application must check for the current OS and provide its own renderer implementation. Besides the fact that this is a lot of work, it makes the application OS aware and such breaks the WORA principle.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: