Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4803005
Votes 0
Synopsis GTKStyle.CLASS_SPECIFIC_MAP has values requiring mapping of "_" to "-"
Category java:classes_swing
Reported Against 1.4.1
Release Fixed
State 11-Closed, duplicate of 4632193, bug
Priority: 4-Low
Related Bugs 4632193
Submit Date 14-JAN-2003
Description
The documentation for GTKStyle.getClassSpecificValue contains the following:

* Note, the key used here should only contain the letters A-Z, a-z, the
* digits 0-9, and the '-' character. If you need to request a value for
* a key having characters outside this list, replace any other characters
* with '-'. (ie. "default_border" should be "default-border").

The following lines in GTKStyle, fail to do this mapping (ie. "_" to "-") to their second parameter. These second parameters are keys to be used for getClassSpecificValue. As a result of this missed mapping, the appropriate values will not be able to be fetched.

CLASS_SPECIFIC_MAP.put("CheckBox.iconTextGap", "indicator_spacing");
CLASS_SPECIFIC_MAP.put("Slider.thumbHeight", "slider_width");
CLASS_SPECIFIC_MAP.put("Slider.trackBorder", "trough_border");
CLASS_SPECIFIC_MAP.put("SplitPaneDivider.size", "handle_size");
CLASS_SPECIFIC_MAP.put("Tree.expanderSize", "expander_size");
CLASS_SPECIFIC_MAP.put("ScrollBar.thumbHeight", "slider_width");
Work Around
N/A
Evaluation
All "_" should be replaced with "-".
  xxxxx@xxxxx   2003-01-14

This was fixed as part of 4632193.
  xxxxx@xxxxx   2003-05-01
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang