• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to load image  RSS feed

 
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: 56227
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sound like a Swing-related topic: moving
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!