L
Laax
Hi All,
I like to replace my event handling code (using inner classes) with
JDK1.4.x java.beans.EventHandler?
But I doubt how can I use it in the following case?
myButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
String x = evt.getAProperty();
String y = evt.getAnotherProperty();
// use x and y.
}
});
I want the ActionEvent to be passed to my method...How can I do it?
Laax.
I like to replace my event handling code (using inner classes) with
JDK1.4.x java.beans.EventHandler?
But I doubt how can I use it in the following case?
myButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
String x = evt.getAProperty();
String y = evt.getAnotherProperty();
// use x and y.
}
});
I want the ActionEvent to be passed to my method...How can I do it?
Laax.