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