⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 face.java~103~

📁 java实战网吧计费系统
💻 JAVA~103~
字号:
package mysystem;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JMenuBar;
import java.awt.Color;
import javax.swing.JMenu;
import java.awt.Font;
import javax.swing.JMenuItem;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JLabel;
import java.awt.Rectangle;
import javax.swing.JTextArea;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import java.awt.Point;
import mysystem.Shangjiface;
import javax.swing.JOptionPane;
import javax.swing.Icon;
import javax.swing.ImageIcon;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Face extends JFrame {
    JPanel contentPane;
    JMenuBar jMenuBar1 = new JMenuBar();
    JMenu jMenu1 = new JMenu();
    JMenuItem jMenuItem1 = new JMenuItem();
    JMenuItem jMenuItem2 = new JMenuItem();
    JMenu jMenu2 = new JMenu();
    JMenuItem jMenuItem3 = new JMenuItem();
    JMenu jMenu3 = new JMenu();
    JMenuItem jMenuItem4 = new JMenuItem();
    JOptionPane jOptionPane1 = new JOptionPane();
    JLabel jLabel1 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JMenuItem jMenuItem5 = new JMenuItem();
    JMenuItem jMenuItem6 = new JMenuItem();
    public Face() {
        try {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    /**
     * Component initialization.
     *
     * @throws java.lang.Exception
     */
    private void jbInit() throws Exception {
        contentPane = (JPanel) getContentPane();
        contentPane.setLayout(null);
        this.setJMenuBar(jMenuBar1);
        setSize(new Dimension(650,488 ));
        setTitle("网吧记费管理器");
        jMenuBar1.setBackground(Color.green);
        jMenuBar1.setFont(new java.awt.Font("Tahoma", Font.PLAIN, 15));
        jMenuBar1.setForeground(new Color(255, 0, 95));
        jMenu1.setBackground(Color.green);
        jMenu1.setForeground(Color.red);
        jMenu1.setText("使用");
        jMenuItem1.setForeground(Color.red);
        jMenuItem1.setText("上机");
        jMenuItem1.addActionListener(new Face_jMenuItem1_actionAdapter(this));

        jMenuItem2.setForeground(Color.red);
        jMenuItem2.setText("下机");
        jMenuItem2.addActionListener(new Face_jMenuItem2_actionAdapter(this));
        jMenu2.setBackground(Color.green);
        jMenu2.setForeground(Color.red);
        jMenu2.setText("管理 ");
        jMenuItem3.setForeground(Color.red);
        jMenuItem3.setText("关于");
        jMenuItem3.addActionListener(new Face_jMenuItem3_actionAdapter(this));
        jMenu3.setBackground(Color.green);
        jMenu3.setForeground(Color.red);
        jMenu3.setText("退出");
        jMenuItem4.setForeground(Color.red);
        jMenuItem4.setText("确定!");
        jMenuItem4.addActionListener(new Face_jMenuItem4_actionAdapter(this));
        contentPane.setBackground(Color.cyan);
        jLabel1.setFont(new java.awt.Font("隶书", Font.PLAIN, 25));
        jLabel1.setForeground(Color.green);
        jLabel1.setText("章--威--制--作");
        jLabel1.setBounds(new Rectangle(58, 310, 181, 39));
        jLabel2.setFont(new java.awt.Font("隶书", Font.PLAIN, 25));
        jLabel2.setForeground(Color.green);
        jLabel2.setText("2007-12-10 版本1.0");
        jLabel2.setBounds(new Rectangle(30, 350, 250, 34));
        jLabel3.setText("");
        jLabel3.setBounds(new Rectangle(0, 0, 650, 488));
        jMenuItem5.setForeground(Color.red);
        jMenuItem5.setText("综合管理");
        jMenuItem5.addActionListener(new Face_jMenuItem5_actionAdapter(this));
        jMenuItem6.setForeground(Color.red);
        jMenuItem6.setText("余额查询");
        jMenuItem6.addActionListener(new Face_jMenuItem6_actionAdapter(this));
        jMenuBar1.add(jMenu1);
        jMenuBar1.add(jMenu2);
        jMenuBar1.add(jMenu3);
        jMenu1.add(jMenuItem1);
        jMenu1.add(jMenuItem2);
        jMenu2.add(jMenuItem3);
        jMenu2.add(jMenuItem5);
        jMenu2.add(jMenuItem6);
        jMenu3.add(jMenuItem4);
        contentPane.add(jLabel1);
        contentPane.add(jLabel2);
        contentPane.add(jLabel3);
         jLabel3 .setIcon(new ImageIcon("1.jpg"));
    }

    public void jMenuItem4_actionPerformed(ActionEvent e) {
        System.exit(0);
    }

    public void jMenuItem1_actionPerformed(ActionEvent e) {

        Shangjiface shang=new Shangjiface(this);
       this.setContentPane(shang);


       this.show();




    }

    public void jMenuItem2_actionPerformed(ActionEvent e) {

               xiajiface xia=new xiajiface(this);


        xia.show();
    }

    public void jMenuItem3_actionPerformed(ActionEvent e) {
        jOptionPane1.showMessageDialog(null,"版权所有,违者必究!");
       jOptionPane1.showMessageDialog(null,"章威制作 2007-12-10,版本1.0");
    }

    public void jMenuItem5_actionPerformed(ActionEvent e) {

        guanlidenglu guan=new guanlidenglu(this);
       this.setContentPane(guan);


       this.show();

    }

    public void jMenuItem6_actionPerformed(ActionEvent e) {
              yuechaxun yue=new yuechaxun(this);
                this.setContentPane(yue);
                this.show();
    }

}


class Face_jMenuItem6_actionAdapter implements ActionListener {
    private Face adaptee;
    Face_jMenuItem6_actionAdapter(Face adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jMenuItem6_actionPerformed(e);
    }
}


class Face_jMenuItem5_actionAdapter implements ActionListener {
    private Face adaptee;
    Face_jMenuItem5_actionAdapter(Face adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jMenuItem5_actionPerformed(e);
    }
}


class Face_jMenuItem2_actionAdapter implements ActionListener {
    private Face adaptee;
    Face_jMenuItem2_actionAdapter(Face adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jMenuItem2_actionPerformed(e);
    }
}


class Face_jMenuItem1_actionAdapter implements ActionListener {
    private Face adaptee;
    Face_jMenuItem1_actionAdapter(Face adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jMenuItem1_actionPerformed(e);
    }
}


class Face_jMenuItem4_actionAdapter implements ActionListener {
    private Face adaptee;
    Face_jMenuItem4_actionAdapter(Face adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jMenuItem4_actionPerformed(e);
    }
}


class Face_jMenuItem3_actionAdapter implements ActionListener {
    private Face adaptee;
    Face_jMenuItem3_actionAdapter(Face adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jMenuItem3_actionPerformed(e);
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -