wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes how to load image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to load image" Watch "how to load image" New topic
Author

how to load image

ed jones
Greenhorn

Joined: Oct 01, 2008
Posts: 11
hello,

confused about how to load an image? The image is in /src/res
Aum Tao
Ranch Hand

Joined: Feb 14, 2006
Posts: 210
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.


SCJP 1.4 85%
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38107
    
  22
Sound like a Swing-related topic: moving
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to load image
 
Similar Threads
Adding an image to a frame
Output image file and displaying it on screen
How to add image inside jPanel ??
Rotating an image
problem relating to jpanel background image