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

📄 clientgui.java~2~

📁 一个可以实现联网售票的火车售票管理系统
💻 JAVA~2~
字号:
package train.gui;import javax.swing.JFrame;import javax.swing.*;//import com.borland.jbcl.layout.XYLayout;import javax.swing.JPopupMenu;import java.awt.*;import java.awt.event.*;import java.net.*;/** * <p>Title: </p> * * <p>Description: </p> * * <p>Copyright: Copyright (c) 2006</p> * * <p>Company: 沈阳化工学院计算机</p> * * @author 彭胜勇 胡林 * @version 1.0 */public class System extends JFrame {    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();    int screenWidth = screenSize.width;    int screenHeight = screenSize.height;    URL url = getClass().getResource("background.png");    JMenuBar jMenuBar = new JMenuBar();    //XYLayout xYLayout1 = new XYLayout();    JMenu menu[] = {new JMenu("系统管理"),                   new JMenu("列车管理"),                   new JMenu("票务营业"),                   new JMenu("信息查询"),                   new JMenu("票务统计"),                   new JMenu("系统帮助") };    JMenuItem menuItem[] = {new JMenuItem("系统设置"),                           new JMenuItem("用户管理"),                           new JMenuItem("退出系统"),                           new JMenuItem("车次管理"),                           new JMenuItem("车厢管理"),                           new JMenuItem("路线管理"),                           new JMenuItem("售票"),                           new JMenuItem("订票"),                           new JMenuItem("退票"),                           new JMenuItem("车次查询"),                           new JMenuItem("售票查询"),                           new JMenuItem("余票查询"),                           new JMenuItem("售票统计"),                           new JMenuItem("余票统计"),                           new JMenuItem("客流流向统计"),                           new JMenuItem("关于系统")};    public System() {        try {            jbInit();            this.setSize(600, 375);            this.setLocation(262, 197);            this.setVisible(true);        } catch (Exception ex) {            ex.printStackTrace();        }    }    public static void main(String[] args) {        System system = new System();    }    private void jbInit() throws Exception {        this.setJMenuBar(jMenuBar);        this.setTitle("火车售票管理系统--客户端");        this.getContentPane().setLayout(null);        jMenuBar.setToolTipText("系统管理");        this.jMenuBar.add(menu[0]);        this.jMenuBar.add(menu[1]);        this.jMenuBar.add(menu[2]);        this.jMenuBar.add(menu[3]);        this.jMenuBar.add(menu[4]);        this.jMenuBar.add(menu[5]);        this.menu[0].add(menuItem[0]);        this.menu[0].add(menuItem[1]);        this.menu[0].add(menuItem[2]);        this.menu[1].add(menuItem[3]);        this.menu[1].add(menuItem[4]);        this.menu[1].add(menuItem[5]);        this.menu[2].add(menuItem[6]);        this.menu[2].add(menuItem[7]);        this.menu[2].add(menuItem[8]);        this.menu[3].add(menuItem[9]);        this.menu[3].add(menuItem[10]);        this.menu[3].add(menuItem[11]);        this.menu[4].add(menuItem[12]);        this.menu[4].add(menuItem[13]);        this.menu[4].add(menuItem[14]);        this.menu[5].add(menuItem[15]);        this.menuItem[6].addActionListener(processAl[1]);    }}

⌨️ 快捷键说明

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