Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- */
- package app2;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- /**
- *
- * @author Student1
- */
- public class AppActionListener implements ActionListener{
- @Override
- public void actionPerformed(ActionEvent ae) {
- //
- System.out.println("AppActionListener.actionPerformed!!!");
- Object obj = ae.getSource();
- System.out.println("source.class=" + obj.getClass());
- //
- String actionCommand = ae.getActionCommand();
- System.out.println("actionCommand=" + actionCommand);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement