• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Where do I put icons in a Netbeans 5.5.1 project?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic