From: Jiger P. <jig...@ho...> - 2002-04-06 06:26:42
|
Hi all, I am writting a script in Jython which uses swing etc in it. I am creating a JList object & assigning actionPerformed to it but jython gives me this error. TypeError: can't set arbitrary attribute in java instance: actionPerformed My code creating the jlist obj is like this self.jlist = swing.JList(actionPerformed=self.onefileselection); & onefileselection is defined in the same class like this def onefileselection(self,event): self.openFile(self,event.source.selectedValue); I dont see anything wrong & infact if I assign the same actionPerformed syntax to a JTextField it works fine. But not with JList or JComboBox etc. Is there anything am missing. Thanks & Awaiting your replies, Jiger _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |