This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes where to place icons? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "where to place icons?" Watch "where to place icons?" New topic

where to place icons?

Andy Jung
Ranch Hand

Joined: Feb 07, 2010
Posts: 150
Hi all,

I have some icons displayed in my ULRyBird-application (for example a little birdie as window icon, a lock-symbol to mark records as being logically locked in the JTable).
Where should I put them in the jar-file structure? The assignment doesn't mention any place for that.

Kind regards,

Roel De Nijs

Joined: Jul 19, 2004
Posts: 8412

Hi Andy,

Sounds like you are doing a whole lot unrequired stuff and now you have an issue with the unneeded functionality you implemented. People seem to have a hard time just sticking to the requirements and not doing anything extra (I was one of them too )

Maybe put them in a package suncertify.gui.icons?

Kind regards,

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
Tobias Otto

Joined: Apr 05, 2010
Posts: 2
Hello Andy

I think the elegant way is to load the images with the clasloader from the same package.
You maybe like to take a lok at

Hope this helps.
Tobias [scjp]
Andy Jung
Ranch Hand

Joined: Feb 07, 2010
Posts: 150
Hi Tobias,

at first a heartly welcome to this forum!

Hmm, interesting, is there a difference using your approach loading images or like I did ? :

Kind regards,
I agree. Here's the link:
subject: where to place icons?
jQuery in Action, 3rd edition