-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
6
-
Cause Known
-
x86
-
windows_xp
When we need to customize components we often require access to the UIDefaults.
We need to know which key name to pass to the UIManager in order to get the UIDefault.
Currently we need to look through the source code of the component we are customizing and find out which key it is using to access the UIDefaults and then hard code that key into our code. A major problem with this is if Sun decides to change the key name (which I think they have done before) then we wont know until we discover that our software no longer works.
Sometimes Sun is using hard codes names, other times private static finals, either way we can't access these.
All I am asking for is a simple Constants file so that we can use this Constants file to access UI key names used by Sun.
e.g.
public interface UIKeyConstants {
public static final String CONTROL_TEXT = "controlText"; }
Then we can simply import static javax.swing.UIKeyConstants.*;
and call UIManager.get(CONTROL_TEXT);
Some documentation would also be helpful and Suns code should also be changed to use these constants.
###@###.### 2005-07-12 17:35:50 GMT
We need to know which key name to pass to the UIManager in order to get the UIDefault.
Currently we need to look through the source code of the component we are customizing and find out which key it is using to access the UIDefaults and then hard code that key into our code. A major problem with this is if Sun decides to change the key name (which I think they have done before) then we wont know until we discover that our software no longer works.
Sometimes Sun is using hard codes names, other times private static finals, either way we can't access these.
All I am asking for is a simple Constants file so that we can use this Constants file to access UI key names used by Sun.
e.g.
public interface UIKeyConstants {
public static final String CONTROL_TEXT = "controlText"; }
Then we can simply import static javax.swing.UIKeyConstants.*;
and call UIManager.get(CONTROL_TEXT);
Some documentation would also be helpful and Suns code should also be changed to use these constants.
###@###.### 2005-07-12 17:35:50 GMT