JDK-7012008 : JDesktopPane - Wrong background color with Win7+WindowsLnf
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_7
  • CPU: x86
  • Submitted: 2011-01-12
  • Updated: 2016-04-14
  • Resolved: 2016-03-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b114Fixed
Description
FULL PRODUCT VERSION :
jdk6u23

ADDITIONAL OS VERSION INFORMATION :
Windows7 32 bit

EXTRA RELEVANT SYSTEM CONFIGURATION :
running in VirtualBox -> no composition manager / aero running

A DESCRIPTION OF THE PROBLEM :
It seems WindowsLookAndFeel selects a wrong background color for JDesktopPanes.

On my Windows7 default test installation (I develop on Linux) the background color of JDesktopPanes is solid black when using WindowsLookAndFeel, although several native MDI sample apps (one mfc based, the other one based on .NET) display the window-"desktop" color as gray.

  To illustrate the problem I've created a small screenshot showing SwingSet2 running side-by side with the MFC/.NET MDI samples: http://picasaweb.google.com/linuxhippy/JDesktopPane


REPRODUCIBILITY :
This bug can be reproduced always.