• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to load image

 
ed jones
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

confused about how to load an image? The image is in /src/res
 
Aum Tao
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually, placing the image file in the same directory as your main class file is sufficient. Or, you can also add it explicitly if you are using an IDE like NetBeans.
 
Campbell Ritchie
Marshal
Posts: 53221
124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sound like a Swing-related topic: moving
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!