JPython Applet Demos
Wait until the JPython 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.
Once the library has loaded, your first JPython applet will appear below:
Something has gone wrong loading this applet.
If you don't see the text "Hello from JPython!" above, then something has gone wrong. See what
to do when JPython 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 JPython!",
20, 30)
More Examples of JPython Applets
- Using the basic AWT GUI elements
- Low-level drawing
- Putting it all together
- Converter - a simple metric to english conversion applet