Home www.python.org
Download Documentation
Home
Overview
License
Jython 2.0
Jython 2.1
Installing
JVM Compatibility
 
Applets
Demos
ButtonDemo
CheckboxDemo
ChoiceDemo
LabelDemo
ListDemo
CoordinatesDemo
ConvertDemo
 
Applet Problems
Here's what to do
Other applet issues
 
Email Us
jython-dev@lists.sourceforge.net
 
 
SourceForge Logo
  

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:

Something has gone wrong loading this applet.

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 class HelloWorld(Applet): def paint(self, g): g.drawString("Hello from Jython!" 20, 30)

More Examples of Jython Applets

Examples based on The Java Tutorial Examples