T
Tom Parson
Assume the user clicked on a button which in turn results in an ActionEvent e.
Is there a way to detect in actionperformed() from which button the click was originally coming?
A statement like
public void actionPerformed(ActionEvent e){
if (e.getComponent() = mybutton2) ...
does not work.
Tom
Is there a way to detect in actionperformed() from which button the click was originally coming?
A statement like
public void actionPerformed(ActionEvent e){
if (e.getComponent() = mybutton2) ...
does not work.
Tom