Index:
[thread]
[date]
[subject]
[author]
From: Michael Abernethy <mna@duke.edu>
To :
Date: Tue, 13 Apr 1999 22:34:01 -0400
Re: Loading images in Main.java
in an application to load an image use the code
Toolkit.getDefaultToolkit().getImage(String filename);
Also, importing the Applet class and using the getImage(URL) won't work.
>
> Assuming we have to get full functionality in both Main.java and
> MyApplet.java, how do we load images in Main.java? getImage needs the
> Applet class, and it seems weird to import the applet class into the
> Main.java. Help would be appreciated. Thank you.
Mike Abernethy
www.duke.edu/~mna
IBM Club Cyberblue - www.cybrblu.ibm.com
Index:
[thread]
[date]
[subject]
[author]