View Full Version : Can JavaScript Write A Java Image Object

05-30-2004, 03:32 PM
Wow, Cant Remember The Last Time I Needed This Forum.
Looks A Bit Better Than It Did A Couple Yeas Ago.

My Question Is.

If I Create An Image Object In A Java Applet Using The Toolkits
createImage(imgw,imgh) Method

Is There A Way For JavaScript To Dynamically Display That Image ?

Ex.. From Test.java

public Image makeImage(){
Image retVal=createImage(100,100);
Graphics gfx=retVal.getGraphics();
gfx.setColor(new Color(255,0,0));
return retVal;

Ex.. From Test.html

<applet code="Test.class" width="20" height="20">

<script language="JavaScript" type="text/javascript">



Thanks For The Help...