United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4912613 Swing's GTK look and feel should be updated to track GTK 2.2
JDK-4912613 : Swing's GTK look and feel should be updated to track GTK 2.2

Details
Type:
Bug
Submit Date:
2003-08-26
Status:
Resolved
Updated Date:
2003-11-11
Project Name:
JDK
Resolved Date:
2003-10-18
Component:
client-libs
OS:
linux_sun
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.2_01
Fixed Versions:
1.4.2_04 (04)

Related Reports
Backport:
Relates:

Sub Tasks

Description
Selection Color of the TextField is different than the native selected text color. 

Steps to reproduce:
------------------
1) Run SwingSet2 on Mercury with -Dswing.gtkthemefile=<Your .gtkrc File>. Change the Look And Feel to GTK.
2) Go to FileChooser Demo. 
3) Write some thing into the text field and select the text. 
4) Note the selection color of the text.
5) Now open Gedit or anyother Native application with text. 
6) Click Open and repeat the step 3. 
7) Both the colors are different

                                    

Comments
EVALUATION

Swing's GTK look and feel matches that of GTK 2.0.x, Mercury is shipping with
GTK 2.2, and there are some differences in a handful of places.  This bug
illustrates one of the places where GTK 2.0 and GTK 2.2 differ, in the colors.
The original synopsis of this bug was:
'Selection Color of the TextField is different than the native selection Color'
I'm changing the synopsis to match the real cause.

Here's the things that have changed (most of this can be found on the
bugzilla web site, http://bugzilla.gnome.org/show_bug.cgi?id=80691):
. Fallback color palette has changed, with specific colors for menus and
  progress bars.
. Menus are now painted with a different shadow type.

Other problems fixed (in Swing's GTK look and feel, not between GTK 2.2
and 2.4) with this:
. Disabled text was painted incorrectly.
. State passed into the engine for paintCheck and paintOption was wrong.
. Calculating the light/dark/mid colors was wrong.
. ProgressBars were getting inset and extra pixel.
. Menu separators would draw in the wrong place if they were 2 pixels tall.

Look at the comments for some additional details on this.

Also note that with the latest version of blueprint the original problem this
was submitted against is not an issue.  This is because Blueprint is
explicitly specifying the fallback colors so that Swing looks right.
###@###.### 2003-10-03
                                     
2003-10-03
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.2_04
tiger
tiger-beta

FIXED IN:
1.4.2_04
tiger
tiger-beta

INTEGRATED IN:
1.4.2_04
tiger-b25
tiger-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together