ButtonHandler Example in Java

import java.awt.event.*;
public class ButtonHandler implements ActionListener{
public void actionPerformed(ActionEvent ae){
System.out.println("Action Performed");
System.out.println("Button's command is : "+ae.getActionCommand());


}

}

We Are Founder..