I'm having problems getting the following line to work with a Jython script:
exitButton = swing.JButton("Exit", preferredSize=(100,20), actionPerformed=System.exit(0))
Error generated:
Traceback (innermost last):
  (no code object) at line 0
TypeError: call of non-function ('None' object)
I think the use of System.exit(0) is probably inane here but I'm only newbie and possibly the only undergrad on this list...!
I'd like the user to exit the program, killing all threads etc. Any suggestions on how to do this in the one liner above (i.e. without an explicit def function for actionPerformed).
Thanks in advance,