File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "where to place icons?" Watch "where to place icons?" New topic
Author

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,
Andy


SCJP, SCJD
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5212
    
  12

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,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Tobias Otto
Greenhorn

Joined: Apr 05, 2010
Posts: 1
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 http://www.java2s.com/Code/Java/Swing-JFC/Comboboxcombinesabuttonoreditablefieldandadropdownlist.htm

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,
Andy
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: where to place icons?