这个程序总是报ExitableJFrame出错
import java.awt.*;
import javax.swing.*;
public class FlowLayoutTest {
public static void main(String args[]) {
JFrame frame = new ExitableJFrame("Flow Layout");
Container contentPane = frame.getContentPane();
contentPane.setLayout(new FlowLayout());
contentPane.add(new JButton("First"));
contentPane.add(new JButton("Second"));
contentPane.add(new JButton("Third"));
contentPane.add(new JButton("Fourth"));
contentPane.add(new JButton("Fifth"));
frame.setSize(200, 200);
frame.show();
}
}
这个程序总是报ExitableJFrame出错,不知道哪里出错了,其它的程序只要有ExitableJFrame也会有错