File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to load image" Watch "how to load image" New topic

how to load image

ed jones

Joined: Oct 01, 2008
Posts: 11

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

Joined: Oct 13, 2005
Posts: 46337
Sound like a Swing-related topic: moving
I agree. Here's the link:
subject: how to load image
jQuery in Action, 3rd edition