这是运行效果
上代码:
package com.sh.lw;
import java.awt.event.ActionEvent;import java.awt.event.WindowEvent;
import javax.swing.JFrame;import javax.swing.JOptionPane;
public class TestFrame extends JFrame {
/** * */ private static final long serialVersionUID = -3792557927147777060L;