• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

where to place icons?

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic