to display an image from a file see here
http://www.objects.com.au/
Using that method the image can be where you want it
Easit way to display an image is using a JLabel, see here for an example
http://java.sun.com/docs/b
When loading it as a resource as in this example the image needs to be located in your classpath
Main Topics
Browse All Topics





by: CEHJPosted on 2008-06-16 at 03:15:02ID: 21792158
Depends on how you want to do it. Normally best as
(getClass( ).getResou rce("/MyIm age.png")) ;
BufferedImage bi = javax.imageio.ImageIO.read