Where I can find the key names of the UIDefaults hashtable?
Some examples use keys like "Label.background", is there a
comprehensive list?
Thank you
Andre
The list of UIDefaults keys depends on the L&f used,
and so there's no globally valid list. Years ago, Sun
tried to find/setup the set of UIDefaults keys required
or shared by all L&fs; but AFAIK that never happened.
For a long time the list of UIDefaults supported by
the Sun default L&fs was at least a guideline. With
more and more [third party] L&fs coming up, the key sets
vary more than ever before. For example the new default
L&f Nimbus introduces new keys but doesn't support older
ones.
As long as there's no minimal UIDefaults key specified,
you can rely only on the set given for a specific L&f
(in a specific version).
-Karsten
Thanks a lot for your information. I have found the sources of Desktop
Java Live, they contain a nice little viewer for all keys of the
available L&Fs.
~Andre
Karsten Lentzsch schrieb:
> Thanks a lot for your information. I have found the sources of Desktop
> Java Live, they contain a nice little viewer for all keys of the
> available L&Fs.
It isn't possible to see all keys, because some L&fs use optional keys
that may show up or not. Also, it is interesting to know about the
mandatory and optional client property keys that are required/supported
by an L&f. These are often only documented, and as the UIDefaults keys
cannot be looked up in general.
-Karsten