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

📄 saleticket.java~4~

📁 一个可以实现联网售票的火车售票管理系统
💻 JAVA~4~
字号:
package train;

import javax.swing.JFrame;
import java.awt.GridBagLayout;
import java.awt.*;
import javax.swing.JPanel;
import javax.swing.JButton;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.Box;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextField;
import com.borland.dbswing.JdbTable;
import com.borland.dx.dataset.TableDataSet;
import com.borland.dbswing.JdbNavToolBar;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: 沈阳化工学院计算机学院</p>
 *
 * @author E5-3120
 * @version 1.0
 */
public class SaleTicket extends JFrame {
    public SaleTicket() {
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public static void main(String[] args) {
        SaleTicket saleticket = new SaleTicket();
    }

    private void jbInit() throws Exception {
        this.getContentPane().setLayout(gridBagLayout1);
        jPanel1.setLayout(gridBagLayout2);
        jLabel1.setText("车次");
        jLabel2.setText("始发站");
        jLabel3.setText("终到站");
        jLabel4.setText("始发时刻");
        jLabel5.setText("终到时刻");
        jLabel6.setText("车次类型");
        jTextField1.setText("jTextField1");
        jTextField2.setText("jTextField2");
        jTextField3.setText("jTextField3");
        jTextField4.setText("jTextField4");
        jTextField5.setText("jTextField5");
        jTextField6.setText("jTextField6");
        jLabel7.setText("车次");
        jTextField7.setText("jTextField7");
        jLabel8.setText("起始站");
        jLabel9.setText("日期");
        jLabel10.setText("到站");
        this.getContentPane().add(jPanel1,
                                  new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0
                , GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(15, 13, 7, 10), 20, 25));
        jPanel1.add(jLabel6, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(0, 22, 0, 7), 0, 14));
        jPanel1.add(jLabel7, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(31, 22, 0, 0), 0, 16));
        jPanel1.add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(18, 22, 0, 7), 25, 14));
        jPanel1.add(jTextField2, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
                new Insets(9, 6, 0, 0), -25, 1));
        jPanel1.add(jLabel2, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(18, 18, 0, 0), 16, 13));
        jPanel1.add(jTextField4, new GridBagConstraints(3, 1, 1, 1, 1.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
                new Insets(9, 12, 0, 31), -24, 2));
        jPanel1.add(jTextField3, new GridBagConstraints(3, 0, 1, 1, 1.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
                new Insets(18, 11, 0, 36), -28, 2));
        jPanel1.add(jLabel8, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(12, 22, 0, 0), 21, 17));
        jPanel1.add(jLabel3, new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(18, 0, 0, 0), 23, 13));
        jPanel1.add(jLabel4, new GridBagConstraints(4, 1, 1, 1, 0.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(0, 0, 0, 0), 10, 16));
        jPanel1.add(jdbNavToolBar1, new GridBagConstraints(0, 4, 6, 1, 1.0, 0.0
                , GridBagConstraints.EAST, GridBagConstraints.HORIZONTAL,
                new Insets(0, 41, 0, 34), 0, 0));
        jPanel1.add(jLabel5, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(0, 9, 0, 9), 4, 13));
        jPanel1.add(jTextField6, new GridBagConstraints(5, 1, 1, 1, 1.0, 0.0
                , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
                new Insets(8, 7, 1, 11), -28, 1));
        jPanel1.add(jTextField5, new GridBagConstraints(5, 0, 1, 1, 1.0, 0.0
                , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
                new Insets(17, 8, 1, 10), -32, 4));
        jPanel1.add(jLabel10, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0
                , GridBagConstraints.NORTH, GridBagConstraints.NONE,
                new Insets(5, 3, 6, 18), 51, 13));
        jPanel1.add(jLabel9, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0
                , GridBagConstraints.NORTH, GridBagConstraints.NONE,
                new Insets(23, 6, 4, 17), 47, 16));
        jPanel1.add(jTextField7, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0
                , GridBagConstraints.CENTER, GridBagConstraints.NONE,
                new Insets(14, 0, 0, 24), 77, 9));
        jPanel1.add(jTextField1, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0
                , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
                new Insets(18, 3, 0, 0), -26, 2));
        jPanel1.add(jButton1, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0
                , GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE,
                new Insets(9, 27, 13, 34), 0, 0));
        jPanel1.add(jdbTable1, new GridBagConstraints(0, 5, 6, 1, 0.0, 0.0
                , GridBagConstraints.CENTER, GridBagConstraints.NONE,
                new Insets(0, 0, 0, 0), 467, 82));
        jButton1.setText("jButton1");
        this.setLocation(100,100);
        this.setVisible(true);
    }

    JPanel jPanel1 = new JPanel();
    JButton jButton1 = new JButton();
    JLabel jLabel1 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel5 = new JLabel();
    JLabel jLabel6 = new JLabel();
    JTextField jTextField1 = new JTextField();
    JTextField jTextField2 = new JTextField();
    JTextField jTextField3 = new JTextField();
    JTextField jTextField4 = new JTextField();
    JTextField jTextField5 = new JTextField();
    JTextField jTextField6 = new JTextField();
    JLabel jLabel7 = new JLabel();
    JTextField jTextField7 = new JTextField();
    JLabel jLabel8 = new JLabel();
    JLabel jLabel9 = new JLabel();
    JLabel jLabel10 = new JLabel();
    JdbNavToolBar jdbNavToolBar1 = new JdbNavToolBar();
    GridBagLayout gridBagLayout1 = new GridBagLayout();
    GridBagLayout gridBagLayout2 = new GridBagLayout();
    JdbTable jdbTable1 = new JdbTable();
}

⌨️ 快捷键说明

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