I'm having some problems attaching action listeners to swing widgets in
jython, using the event introspection syntax (self.actionPerformed=self.XXX
etc). With JTextField, everything works fine. With JComboBox, introspection
doesn't work, but I can subclass ActionListener and use
JComboBox.addActionListener (ie the usual java syntax) to achieve the same
effect. With JCheckBox, neither of these approaches seem to work.
I notice from the docs that the way events are supported by each class is
slightly different. JTextField has an addActionListener method but does not
implement ActionListener. JComboBox has an addActionListener method, but
also implements ActionListener (and thus must implement
actionListener.actionPerformed). JCheckBox inherits an addActionListener
method from its parent AbstractButton.
Is it possible that event introspection is getting confused in some of
these cases ?