createlongcarddialog.java~1~

来自「eidtplus注册码.txt eidtplus注册码.txt」· JAVA~1~ 代码 · 共 90 行

JAVA~1~
90
字号
package parkingsystem;

import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Rectangle;
import com.borland.dx.sql.dataset.*;

public class CreateLongCardDialog
    extends JDialog {
  JPanel panel1 = new JPanel();
  JLabel jLabel1 = new JLabel();
  JLabel jLabel2 = new JLabel();
  JLabel jLabel3 = new JLabel();
  JLabel jLabel4 = new JLabel();
  JLabel jLabel5 = new JLabel();
  JLabel jLabel6 = new JLabel();
  JLabel jLabel7 = new JLabel();
  JTextField jTextField1 = new JTextField();
  JTextField jTextField2 = new JTextField();
  JTextField jTextField3 = new JTextField();
  JComboBox jComboBox1 = new JComboBox();
  JButton jButton1 = new JButton();
  JButton jButton2 = new JButton();
  QueryDataSet queryDataSet;
  Database database;
  Database database1 = new Database();

  public CreateLongCardDialog(Frame owner, String title, boolean modal,QueryDataSet queryDataSet,
  Database database) {
    super(owner, title, modal);
    this.queryDataSet=queryDataSet;
    this.database=database;
    try {
      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      jbInit();
      pack();
    }
    catch (Exception exception) {
      exception.printStackTrace();
    }
  }

//  public CreateLongCardDialog() {
//    this(new Frame(), "CreateLongCardDialog", false);
//  }

  private void jbInit() throws Exception {
    panel1.setLayout(null);
    jLabel1.setText("卡   号:");
    jLabel1.setBounds(new Rectangle(41, 61, 96, 31));
    jLabel2.setText("密   码:");
    jLabel2.setBounds(new Rectangle(41, 114, 96, 31));
    jLabel3.setText("车 牌 号:");
    jLabel3.setBounds(new Rectangle(41, 166, 96, 31));
    jLabel4.setText("申请时长(月):");
    jLabel4.setBounds(new Rectangle(41, 219, 96, 31));
    jLabel5.setText("应 收 费:");
    jLabel5.setBounds(new Rectangle(41, 271, 96, 31));
    jLabel6.setBounds(new Rectangle(145, 271, 152, 31));
    jLabel7.setText("填入卡的相关信息:");
    jLabel7.setBounds(new Rectangle(15, 21, 196, 19));
    jTextField1.setBounds(new Rectangle(145, 61, 152, 31));
    jTextField2.setBounds(new Rectangle(145, 114, 152, 31));
    jTextField3.setBounds(new Rectangle(145, 166, 152, 31));
    jComboBox1.setBounds(new Rectangle(145, 219, 152, 38));
    jButton1.setBounds(new Rectangle(46, 321, 99, 31));
    jButton1.setText("确  定");
    jButton2.setBounds(new Rectangle(190, 321, 99, 31));
    jButton2.setText("取  消");
    getContentPane().add(panel1);
    panel1.add(jLabel7);
    panel1.add(jTextField3);
    panel1.add(jLabel5);
    panel1.add(jLabel1, null);
    panel1.add(jLabel2);
    panel1.add(jLabel3);
    panel1.add(jLabel4);
    panel1.add(jLabel6);
    panel1.add(jComboBox1);
    panel1.add(jTextField2);
    panel1.add(jTextField1);
    panel1.add(jButton1);
    panel1.add(jButton2);
    for(int i=1;i<=12;i++){
      jComboBox1.addItem(i+"");
    }
  }
}

⌨️ 快捷键说明

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