Guest User

Untitled

a guest
Jul 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. public void actionPerformed(ActionEvent ae) {
  2. if(ae.getSource() == button1){
  3. // do something
  4. }
  5.  
  6. else if(ae.getSource() == button2){
  7. // do something else
  8. }
  9.  
  10. }
Add Comment
Please, Sign In to add comment