Summary

In this chapter, we covered applets, which are components that execute within a browser. To run Jython code as an applet, you have to compile it to a Java class. You should also put it in a jar file to make downloading easier.

We extended our address book application to work as an applet. We also covered the inner workings of AppletBrowser, which creates Jython applets through a context (AppletContext) and a stub (AppletStub).

Get Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.