April 23rd, 2002, 05:33 PM
loading image in a class?
can you create/load image in a class and how?
why wont this work?
Thanks for any help.
April 26th, 2002, 09:44 AM
the code wont work b'cos "getCodeBase()" function belongs to the applet class...the code for loadin the image is
URL codeBase= new URL("file://c:/filepath/filename");
try this it will work....
April 26th, 2002, 04:50 PM
In an application you may use the following to load an image into a class:
Image image = Toolkit.getDefaultToolkit ().getImage ("your_picture.gif");