Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / December 2003

Tip: Looking for answers? Try searching our database.

Desktop properties

Thread view: 
Rob McKay - 10 Dec 2003 13:21 GMT
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]));
       }
   }


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.