JDK-4156041 : win32 color palette problem w/ 8 bit display scheme != Windows Standard
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1,solaris_2.6
  • CPU: sparc
  • Submitted: 1998-07-09
  • Updated: 2000-02-08
  • Resolved: 2000-02-08
Related Reports
Duplicate :  
Duplicate :  
Description
When the windows display scheme is not equal to the Windows Standard and the bit depth is 8 bits colors with alpha values appear grayish. To reproduce :

Control Panels -> Display -> Appearance -> Scheme -> Desert
Display -> Settings -> 8 bit or 256 Colors
run Java2Demo see Mix.Balls or anything with a alpha will appear with a grayish color.

beta4-K.

Colors look okay with all other bit depths.

Comments
EVALUATION It happens because of Windows shifts palette entries to change color scheme for preview. Somehow palettechange message has not been translated to awt to update palette. When user clicks OK and new color scheme 's accepted the palette returns back to previous state, colors will be really changed in windows and WM_PAINT. WM_NCPAINT messages will be propagated. All images will return back to their prevoius state. dmitry.feld@eng 1998-08-25
25-08-1998

WORK AROUND It happens because of Windows shifts palette entries to change color scheme for preview. Somehow palettechange message has not been translated to awt to update palette. When user clicks OK and new color scheme 's accepted the palette returns back to previous state, colors will be really changed in windows and WM_PAINT. WM_NCPAINT messages will be propagated. All images will return back to their prevoius state. dmitry.feld@eng 1998-08-25
25-08-1998