JDK-4986083 : java.awt.SystemColor incorrect/inconsistent with Solaris9/Gnome
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_9
  • CPU: generic
  • Submitted: 2004-01-30
  • Updated: 2008-07-04
  • Resolved: 2008-07-04
Related Reports
Relates :  
Description
Firstly, I am running on Solaris 9 MU4, and my default desktop is Gnome 2 (N.B. not CDE).

I am testing using a tiger internal pre-release (1.5.0-beta2-b36).

When I call java.awt.SystemColor, the values I get returned appear to always be the 'Motif' like system colors. i.e. I get told that 'menu' is a blueish colour and 'menuText' is blackish. Please run  the attached testcase to see the colours.

Now, I would want and expect SystemColor, to reflect my current Gnome desktop. Indeed, since bug 490889 has been fixed, the Swing system LAF for Solaris has been changed to be the GTKLookAndFeel when logged into a Gnome desktop.

Surely 'menu'/'menuText' etc in SystemColor should now return the Gnome menu colours etc ?

Note that if I run this testcase on Win2000, the values returned by SystemColor correctly reflect the current Win2000 theme, e.g. shades of brown when 'plum' is selected, shades of blue when 'marine' is selected.

Comments
EVALUATION Might relate to 5092883.
07-11-2005

EVALUATION Name: rpR10076 Date: 01/30/2004 As for now, AWT isn't using GTK widgets, but still uses Motif ones. So the colors are the ones that motif widgets would have, and this is correct. I won't close this bug for now, as probably in the future we might move AWT to GTK-style widgets, and then it may become more important. ###@###.### ======================================================================
17-09-2004