• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to got image from jar file?

 
Yanxin Zhao
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone:
I got a problem about how to got image from jar file. I put both my .class file and pic into jar file, but I can not got pic of which jar file. I want to ask how to got pic from jar file?
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the section Loading Images Using getResource on the page How to Use Icons. It has a discussion of loading images from jar files.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!