From: Wayne P. <wa...@mi...> - 2002-02-18 07:08:39
|
I haven't worked with Jython in a while, so I thought I'd build a simple Applet to refresh my memory. I copied the code from the web site below: from java.applet import Applet class HelloWorld(Applet): def paint(self, g): g.drawString("Hello from Jython!", 20, 30) I then used jythonc to create a .jar file and have the following in my HTML: <applet code='HelloWorld' archive='hello.jar' width=200 height=200> <applet> But when I load the HTML page all I see is a grey box. I've tried several different versions of the above line, mostly in the code attribute. jythonc didn't give any errors except for the "using depreciated...". I'm testing this with Sun's JDK 1.4 . Does anyone know what I'm overlooking? Thanks, Wayne |