Hi,
Does anyone know where there is definitive list of which desktop
properties are available on which platforms?
I found a sun document which lists the ones for windows, but I haven't
been able to find similar lists for the Mac or linux/unix etc.
Thanks,
Rob.
Andrew Thompson - 10 Dec 2003 13:56 GMT
...
> Does anyone know where there is definitive list of which desktop
> properties are available on which platforms?
If I understand you correctly..
Enumeration en = System.getProperties().propertyNames();
--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
Rob McKay - 10 Dec 2003 15:09 GMT
> ...
> > Does anyone know where there is definitive list of which desktop
> > properties are available on which platforms?
>
> If I understand you correctly..
> Enumeration en = System.getProperties().propertyNames();
No I mean the desktop properties accessed through
Toolkit.getDesktopProperty(String). You need to know the name of the
property to access it. I can't find a way of dumping all the values.
Rob.
Manish Hatwalne - 10 Dec 2003 21:03 GMT
System.getProperties().list(System.out);
- Manish
> > ...
> > > Does anyone know where there is definitive list of which desktop
[quoted text clipped - 8 lines]
>
> Rob.
Fred L. Kleinschmidt - 10 Dec 2003 21:22 GMT
> Hi,
>
[quoted text clipped - 7 lines]
>
> Rob.
See http://java.sun.com/j2se/1.4.1/docs/guide/swing/1.4/w2k_props.html
In general, this is not possible, especially on UNIX platforms.

Signature
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94 (206)544-5225
Todd Corley - 11 Dec 2003 15:39 GMT
I always use this...works with what ever look and feel you are
currently using.
public static void printUIManagerDefaults()
{
Object[] objs =
javax.swing.UIManager.getLookAndFeel().getDefaults().keySet().toArray();
java.util.Arrays.sort( objs );
for( int i = 0; i < objs.length; i++ )
{
System.out.println(objs[i]+"\n-----------------------------value
= "+javax.swing.UIManager.getDefaults().get(objs[i]));
}
}