aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Where do I put icons in a Netbeans 5.5.1 project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Where do I put icons in a Netbeans 5.5.1 project?" Watch "Where do I put icons in a Netbeans 5.5.1 project?" New topic
Author

Where do I put icons in a Netbeans 5.5.1 project?

Charles Howard
Greenhorn

Joined: May 02, 2003
Posts: 7
Hi all

I want to put icons somewhere in a beginner project, so as to call:
Icon icon = new ImageIcon("myIcon.gif");
(or some variant with a path specified), and bung it onto a JLabel etc.

In the src folder of the project I've got a gui package containing:
BuildGui.java

I've tried putting a test icon just about everywhere. Sometimes it shows up, but if so, when I fire up a shell, go to the dist folder that Netbeans creates, and try:
java -jar MyIconDemo.jar
no icons show.

Thanks
Charlie Howard
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where do I put icons in a Netbeans 5.5.1 project?