ExamplesΒΆ

Working code samples that show Jython in action. Most of these demonstrate Java-Python interop in concrete ways – building Swing GUIs, talking to databases, calling Java libraries from Python, and the other direction too. Good for learning by reading and modifying real code.

Swing & GUIΒΆ

  • SwingExamples – A collection of Swing GUI examples written in Jython

  • ADB SwingExamples – Additional Swing examples contributed by ADB

  • SwingSampler – A sampler application demonstrating various Swing components

  • SwingWorker – Using SwingWorker for background tasks in Jython GUIs

  • JtreeExample – Building a JTree widget in Jython

  • TabbedExample – A tabbed pane interface example

  • JythonNutpad – A Notepad-like text editor built with Jython and Swing

DatabaseΒΆ

  • DatabaseExamples – Database access patterns from Jython

  • ApacheDerby – Connecting to and using Apache Derby from Jython

  • RSMD.py – ResultSetMetaData utility script for database introspection

Java IntegrationΒΆ

  • JythonClassesInJava – How to use Jython-defined classes from Java code

  • JythonModulesInJava – How to import and call Jython modules from Java

  • Log4jExample – Using Apache Log4j for logging from Jython

  • PoiExample – Reading and writing Excel files with Apache POI from Jython

  • EasterJar – Packaging a Jython application into a JAR file

OtherΒΆ