From: chrisf <ch...@fa...> - 2003-01-31 10:56:45
|
Background RedHat 8.0 Installed j2sdk1.4.1 from backdown installed java plugin for mozilla installed jython PS demos work fine on jython site in mozilla copied code directly from jython applet demo site and pasted in test.py """start""" from java import awt, applet class ButtonDemo(applet.Applet): def init(self): self.b1 = awt.Button('Disable middle button', actionPerformed=self.disable) self.b2 = awt.Button('Middle button') self.b3 = awt.Button('Enable middle button', enabled=0, actionPerformed=self.enable) self.add(self.b1) self.add(self.b2) self.add(self.b3) def enable(self, event): self.b1.enabled = self.b2.enabled = 1 self.b3.enabled = 0 def disable(self, event): self.b1.enabled = self.b2.enabled = 0 self.b3.enabled = 1 """ end """ >jython --jar test.jar test.py created a html file test.html with the following <html><body> <applet code="test" archive="test.jar" width = 500 height = 200 alt="This browser doesn't support JDK 1.1 applets."> </applet> </body></html> Yet nothing happens Why ? Sorry for the bother, Chris ~ -- Chris Fenton |