@sir craig wood,
i tried to use your code, i modified the line which details the filename of the image:
String fileName = "images/a1.jpg";
sir, should the
java program and the image file be located on the same folder, Or should i create a new subfolder then copy the image on that folder.
My Directory Structure
drive c:
|----- java folder
++++++++++++|----- FrameImage.java
++++++++++++|----- images folder
++++++++++++++++++++++++|----- a1.jpg
it has returned this error:
Exception in
thread "main" java.lang.IllegalArgumentException : input ==null!
at javac.imageio.ImageIO.read(Unknown Source)
at FrameImagePanel.loadImage(FrameImage.java:66)
at FrameImagePanel.<init>(FrameImage.java:40)
at FrameImage.<init>(FrameImage.java:13)
at FrameImage.main(FrameImage.java:30)
thanks sir..
[ March 02, 2005: Message edited by: Cyrus Serrano ]