java简单窗口设计(源代码)
上一篇 /
下一篇 2010-12-06 09:04:24
/ 个人分类:JAVA
[转载]
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
public class MainFrame. extends JFrame{
private static final long serialVersionUID = 1L;
private JPanel panel;
private JLabel lbl;
private JButton btnCount;
private JMenuBar menuBar;
private JMenu menuFile;
private JMenuItem menuItemCount;
private JMenuItem menuItemExit;
private String lblView = "0";
public void init(){
setTitle("Automation Test Platform");