• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

where to place icons?

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic