Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
To use a Java applet, you need to compile it using jythonc due to the class loader and sandbox issues mentioned at the beginning of this chapter. Using jythonc for applets is straightforward. Here is the Java code for a very simple applet:
from java.applet import Applet
class Hello(Applet):
def paint(self, g):
g.drawString("Hello from Jython Essentials!")