Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to got image from jar file?  RSS feed

 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!