|
-
September 24th, 1999, 07:55 AM
#1
URGENT!!!! - getImage(URL) function
The getImage(URL) function is a class member of java.applet.Applet. However, what I need is an equivalent function to load an image from the internet without having to descend the control which is displaying the image from java.applet.Applet - the control in question is descended from java.awt.Canvas at the moment.
Please help!
Dave Turner
-
September 24th, 1999, 08:44 AM
#2
Re: URGENT!!!! - getImage(URL) function
man, write your own ImageLoader class, that uses the applet's function getImage!
add a static method to your applet class, that returns reference to this class
add method getImage to your ImageLoader class
and you can load images from whereever you want without havin reference to the applet class
I hope you can manage that!
Leon
http://people.bulgaria.com/vleonkev
-
September 24th, 1999, 09:18 AM
#3
Re: URGENT!!!! - getImage(URL) function
There is another version of getImage in toolkit.
Try,
getToolkit().getImage( url );
I am not sure whether it will work or not. Just give a try.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|