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

Other