public class start implements ActionListener {
public void actionPerformed(ActionEvent aL) {
method(arguments);
}
}
method(arguments) {
//stuff
}
<
You can pass the arguments by constructor. But of course it means with this way you can pass the arguments only when creating the ActionListener
.
public class Start implements ActionListener {
SomeType arguments;
public Start (SomeType arguments) {
this.arguments = arguments;
}
public void actionPerformed(ActionEvent aL) {
method(arguments);
}
}