Jython

Jython is a Java implementation of the Python scripting language. (Just to confuse matters, it used to be the JPython project).

I am primarily interested in using Jython in conjunction with VTK. This provides yet another scripting option for VTK and, assuming you're using Java Swing, it allows you to easily script user interfaces too.

For more info on using Swing in JPython, check out FermiPython from Jerry Guglielmo. (download page)


Examples

Note: Conventional naming of Jython scripts uses the standard Python suffix ".py". I happen to use ".jy".

Non-VTK related

  • simple JList chooser
  • Simple calculator

    Fancier calculator

    VTK related

    simpleVTK.jy


    Related Links

  • Python
  • Jython
  • JPython maillist archives
  • Java
  • Java Foundation Classes (JFC)
  • The Swing Connection
  • Java 2 API
  • Swing 1.1 API Specification