Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UIDefaults

3 views
Skip to first unread message

Andre Rothe

unread,
Aug 17, 2008, 2:20:49 PM8/17/08
to
Hi,

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

Jason Herald

unread,
Aug 17, 2008, 2:55:26 PM8/17/08
to

Karsten Lentzsch

unread,
Aug 18, 2008, 4:52:08 AM8/18/08
to
Andre Rothe wrote:

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

Andre Rothe

unread,
Aug 21, 2008, 3:24:52 PM8/21/08
to
Hi,

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:

Karsten Lentzsch

unread,
Aug 22, 2008, 5:03:50 AM8/22/08
to
Andre Rothe wrote:

> 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

0 new messages