File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes how to load image Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 32708
    
    4
Sound like a Swing-related topic: moving
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to load image
 
Similar Threads
problem relating to jpanel background image
How to add image inside jPanel ??
Output image file and displaying it on screen
Rotating an image
Adding an image to a frame