commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean W. Ferguson" <>
Subject [jelly] BSF and Jython Howto
Date Wed, 27 Aug 2003 17:55:15 GMT
I was wondering if anyone has any examples of mixing jython with jelly code?  I 
can do silly stuff like this:


   from pawt import swing
   import java

   def exit(e): java.lang.System.exit(0)

   frame = swing.JFrame('Swing Example', visible=1)
   button = swing.JButton('Close Me!', actionPerformed=exit)


But I'd like to be able to reference jelly variables in the jython.  If there 
are good examples out there, I'd appreciate the help.  :)


View raw message