Jython question concerning actionPerformed
Delaney, Timothy
tdelaney at avaya.com
Mon Feb 4 17:51:04 EST 2002
More information about the Python-list mailing list
Mon Feb 4 17:51:04 EST 2002
- Previous message (by thread): using sys.stdin.raw_input and sys.stdin.readline together in a platform independent way
- Next message (by thread): Jython question concerning actionPerformed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> From: mishre at hushmail.com [mailto:mishre at hushmail.com] > > I have the following code in Jython running on JDK 1.4, which looks > like it should work, but isn't: > > def actionPerformed(self,event): > if event.getActionCommand() == "Exit": > java.lang.System.exit(0) > elif event.getActionCommand() == "comboBoxChanged": > print event > > Then later on I have: > > self.catCombo = > javax.swing.JComboBox(actionPerformed=self.actionPerformed) > > I'm trying to update a JList when the selected item in the JComboBox > is changed. If I use the code above I get the following error when I > run the program: > > "TypeError: can't assign to this attribute in java instance: > actionPerformed" There are particular problems with JComboBox and actionPerformed. http://aspn.activestate.com/ASPN/Mail/Message/Jython-users/541301 Tim Delaney
- Previous message (by thread): using sys.stdin.raw_input and sys.stdin.readline together in a platform independent way
- Next message (by thread): Jython question concerning actionPerformed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list