This was an area I had a hard time finding out about. There seems to be
little documentation on it, since most books deal with creating applets, not
applications. You need to use the Toolkit class. It has a getImage method,
like Applet does, which lets you load images from a filepath or URL. The
line of code would look like:
Toolkit.getDefaultToolkit().getImage("filename");
Note that you don't have to create an instance of the class yourself, you
can use the static method getDefaultToolkit to get one from Java.
-----Original Message-----
From: Dean Keeler [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 13, 1999 12:43 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Loading in an Image using JDK1.2
I am writing a application that uses jdk1.2 and java3D. It will not be run
as an applet but as an application. How can I read in jpg files when I am
not running from an applet?
Dean
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".