import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
@ expected
匿名内部类(没有名字的内部类)
JButton button = new JButton("button");
button.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
System.out.println("Button Clicked");
}
});