Advertisement
sergAccount

Untitled

Sep 18th, 2016
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1.  */
  2. package app2;
  3.  
  4. import java.awt.event.ActionEvent;
  5. import java.awt.event.ActionListener;
  6.  
  7. /**
  8.  *
  9.  * @author Student1
  10.  */
  11. public class AppActionListener implements ActionListener{
  12.  
  13.     @Override
  14.     public void actionPerformed(ActionEvent ae) {        
  15.          //
  16.         System.out.println("AppActionListener.actionPerformed!!!");
  17.         Object obj = ae.getSource();
  18.         System.out.println("source.class=" + obj.getClass());
  19.         //
  20.         String actionCommand = ae.getActionCommand();        
  21.         System.out.println("actionCommand=" + actionCommand);        
  22.     }    
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement