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¶
CoreJythonExamples – Basic Jython language examples
XmlRelatedExamples – Working with XML parsing and processing in Jython
OtherExamples – Miscellaneous examples that don’t fit neatly into another category