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

Native PLAF Rendering Failure: Scroll Pane is gray, must be white

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 6u18
    • Fix Version/s: None
    • Component/s: client-libs

      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 native PLAF, one expects that a swing application renders similar to native ones. This is not true in this case:

      When having a JTable inside a JScrollPane, the part of the scroll pane not being filled by the table is grey. Native applications instead show it white.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Enable aero on Windows 7.
      Create a JTable, put it in a JScrollPane.
      Ensure that the table does not fill the scroll pane completely.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The part of the scroll pane not filled by the table should be white.
      ACTUAL -
      The part of the scroll pane not filled by the table is gray.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Application must check whether operating system is Windows 7 and manually set the scroll pane's background colour. This makes the application OS aware and such breaks the WORA principle.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: