aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Where are the java (standard) icons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Where are the java (standard) icons" Watch "Where are the java (standard) icons" New topic
Author

Where are the java (standard) icons

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Hi


I try to improve my GUI and for this I decide that I need some icons. I know that java has some default icons (like save, open, exit, etc) but I don't know whre ?
My question is : where are the java (standard) icons ?


Regards,
Mihai


SCJP, SCJD, SCWCD, OCPJBCD
Jorj-Cezar Munteanu
Greenhorn

Joined: Feb 02, 2006
Posts: 7
Originally posted by Mihai Radulescu:
Hi


I try to improve my GUI and for this I decide that I need some icons. I know that java has some default icons (like save, open, exit, etc) but I don't know whre ?
My question is : where are the java (standard) icons ?


Regards,
Mihai


Hi Mihai,
you can find those icons here

http://java.sun.com/developer/techDocs/hi/repository/

I also recommend you to take a look to this, even if it's very big and, perhaps, bloated with a lot of stuff that you'll never use:

http://java.sun.com/products/jlf/ed1/guidelines.html

There's a continuation to this book, called "Java Look and Feel Design Guidelines - Advanced Topics"; if you need it, just send me a private message.

Good luck,
Jorj
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Thanks, Jorj

But this means that I need to pack the all my resources in my deliverable (the runme.jar) - sound reasonable.
Can be that java (JDK) has already some of this resources ? In this way I don't need to provides them once more.


Regards,
Mihai
Jorj-Cezar Munteanu
Greenhorn

Joined: Feb 02, 2006
Posts: 7
Originally posted by Mihai Radulescu:
Thanks, Jorj

But this means that I need to pack the all my resources in my deliverable (the runme.jar) - sound reasonable.
Can be that java (JDK) has already some of this resources ? In this way I don't need to provides them once more.


Regards,
Mihai


Of course you have to pack all the resources in your dist jar. If you must include the Java L&F icons in it or not, well, this is up tp you but also depends on the license of the jlfgr-1_0.zip. If you're allowed to distribute only parts of it, is fine; otherwise you risk to break the license terms (not a wise thing). As for the other question, I doubt that the JDK provides such resources. Even so, there's a big chance that your application will run on top of a JRE and it maybe not even be the same as yours. And Sun can change the JRE/JDK without notice - they just must ensure backward compatibility at class level.
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Hi Jorj,

All sounds reasonable, I'll pack all the resources in my runme.jar. I 'll use the icons provide by sun at : http://java.sun.com/products/jlf/ed2/book/index.html


What I realy don't get from where I obtains the license fro this icons? I take a look at :
http://java.sun.com/products/jlf/ed2/book/index.html

but I can not get any reliable information.

I still think that the JDK has somewhere some interantionalisation properties & some resources - take a look on the JFileChooser, this dilog has some icons (the upper right corner) and supports internationalization also. You have other opinion ?

What you mean by jlfgr-1_0.zip (java look&feel graphic 1) is this the graphic repository ?

Regards,
Mihai.
Jorj-Cezar Munteanu
Greenhorn

Joined: Feb 02, 2006
Posts: 7
Hello Mihai,

I'll try to explain you the things as clear as possible (at least, how do I see them):

1. The "Java Look and Feel Design Guidelines" are just guidelines. There's nothing mandatory in them. They just reflect Sun's view regarding the principles of a good Human-Computer interaction. You can subscribe and follow them (entirely or just a subset) or you can go along with yours, if any. They do not have correspondence in the GUI program's performance, stability nor do they assure you that your application will correctly implement the requirements.

2. The "Java Look and Feel Graphics Repository" represents a set of icons that conform to the above mentioned guidelines. How and under which circumstances can they be used - this is explained in the accompanying license. This license can be found and viewed either:
a) before the download (as far as I remember, you must comply with the license terms in order to be allowed to download an artifact from Sun's website);
b) in the downloaded archive (there's a zip containing a jar, and you'll find the LICENSE file in the root level of that jar file)

And by the way, the jlfgr-1_0.zip is the archive containing those icons which can be downloaded from the 2) page.

Sincerely, I didn't read that license but it should clear to you whether you are permitted to extract the icons and use them individually (that is, embed them in your applicatiob) or not (in this case, you must package the downloaded jar inside your runme.jar). If you read the license and still have doubts, the best thing to do is to contact Sun (both the L&F team at jlfdesign@sun.com and the address provided at the end of your SCJD assignment in case if you have questions - who2contact@sun.com) and ask them.

About the JDK, I'm absolutely sure that you can't just take the icons out of the JDK (again, check the JDK license) nor to rely on them since these are internal mechanisms of the JDK, governed by Sun and susceptible to change in time (just think about the Swing's Windows or Mac look and feels: they're build-in, but IT IS FORBIDDED TO USE them unless you're running on that platform [actually, this is enforced by runtime to prevent misuse]; how do you think that you'll extract an Windows icon and use it on a Unix box without breaking the license terms?).

As for the I18N, this is Java built-in so there's no surprise that Swing makes us of it. It would be surprisingly of not.
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Thanks for tip!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where are the java (standard) icons