为什么这个程序不能运行
//FrameDesign.java//<applet code="FrameDesign.class" width=250 height=150>
//</applet>
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
public class FrameDesign extends JApplet{
private JLabel label;
private JButton button;
public FrameDesign(){
label=new JLabel("Hello, please click the button!");
button=new JButton("click me");
Container container=getContentPane();
container.setLayout(new FlowLayout());
container.add(label);
container.add(button);
button.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent event){
JOptionPane.showMessageDialog(null, "You click me!", "click me"
, JOptionPane.INFORMATION_MESSAGE);
}
}
);
}
public void init(){
new FrameDesign();
}
}