Originally posted by rohit leeta: You need find/extract those icons and use from your java program by specifying their paths.
OK, and is it possible to know the path "automatically"? (something like System.getProperty("icons.MYICON"))
I don't understand what do you mean with "i don't think those icons will look good in a java application", and anyway I'm not looking for icons to use in my application, but I would like to find a way to retrieve the original system icons with Java (that is, if I'm on OS X, I'll get the blue folder icon and if I'm on Windows I'll get the yellow folder icon)
Actually i don't think those icons will look good in a java application. Try searching "Java look and feel guidlines", there are a couple of Java-compatible icons there.
[ May 05, 2007: Message edited by: Davide Zanotti ]
The Java API does not contain any method to get to those icons. Ofcourse this functionality is very platform-specific, on Windows icons probably work very differently than on the Mac or on a Linux desktop.
If you really want to do this, you'll have to write some native code and call that via JNI. Ofcourse the native code will be different for each OS that you want your Java program to work on.