Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using icons packaged in jar in NetBeans

800776Jan 4 2009 — edited Jan 4 2009
Hello!
I want to use [Java LAF Graphics Repository|http://java.sun.com/developer/techDocs/hi/repository/] in my development with NetBeans but there is a problem... There are two ways to use this icons:
1) I can unzip jlfgr-1_0.jar and reference from GUI builder to gif files directly. This method works okay...
2) I can add jlfgr-1_0.jar to classpath. Then I can get icons with method getResource(). But how to use icons in GUI builder then???

The question: what is the best way of using icons packaged in jar in NetBeans IDE?

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2009
Added on Jan 4 2009
2 comments
536 views