Jython Applet Demos
Wait until the Jython library has completely loaded before continuing.
This library is about 200K and should take around 1 minute to download
over a 28.8 modem. You should expect considerably faster download times
if you have a better network connection.
Here is the Java source code for the
Jython loading display you see above.
Once the library has loaded, your first Jython applet will appear below:
If you don't see the text "Hello from Jython!" above,
then something has gone wrong.
See what to do when Jython applets don't work
for suggestions on how to fix the problem.
The complete source code for this applet is displayed below:
from java.applet import Applet
def paint(self, g):
g.drawString("Hello from Jython!" 20, 30)
More Examples of Jython Applets
Examples based on The Java Tutorial Examples
- Using the basic AWT GUI elements
- Low-level drawing
- Putting it all together
- Converter - a simple metric to english conversion applet