JDK-4912613 : Swing's GTK look and feel should be updated to track GTK 2.2
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2_01
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_sun
  • CPU: x86
  • Submitted: 2003-08-26
  • Updated: 2003-11-11
  • Resolved: 2003-10-18
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.
Other
1.4.2_04 04Fixed
Related Reports
Relates :  
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
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

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