资源简介
航空订票系统(数据库版)全套毕业设计及源代码 毕业设计 数据库
代码片段和文件信息
package com.tarena.abs.client;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import com.tarena.abs.model.*;
public class AddOrderItemPanel extends JPanel implements ActionListener{
JLabel label1=new JLabel(“添加订单项:“);
JLabel label2=new JLabel(“乘客姓名:“);
JTextField passengerName=new JTextField(12);
JLabel label3=new JLabel(“证件号码:“);
JTextField passengerId=new JTextField(18);
JLabel label4=new JLabel(“机票类型:“);
//JComboBox(object[]) , values()返回 TicketType[]
JComboBox ticketType=new JComboBox(TicketType.values());
JLabel label5=new JLabel(“舱位等级:“);
JComboBox cabinClass=new JComboBox(CabinClass.values());
JButton button=new JButton(“添加到订单“);
public AddOrderItemPanel(){
init();
eventHandle();
}
/**
* 该方法用于构造图形界面
*
*/
private void init(){
GridBagLayout gbl=new GridBagLayout();
GridBagConstraints constraints=new GridBagConstraints();
this.setLayout(gbl);
buildConstraints(constraints001110100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.EAST;
gbl.setConstraints(label1constraints);
this.add(label1);
buildConstraints(constraints101110100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.EAST;
gbl.setConstraints(label2constraints);
this.add(label2);
buildConstraints(constraints201120100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.CENTER;
gbl.setConstraints(passengerNameconstraints);
this.add(passengerName);
buildConstraints(constraints301110100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.EAST;
gbl.setConstraints(label3constraints);
this.add(label3);
buildConstraints(constraints401120100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.CENTER;
gbl.setConstraints(passengerIdconstraints);
this.add(passengerId);
buildConstraints(constraints501110100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.EAST;
gbl.setConstraints(label4constraints);
this.add(label4);
buildConstraints(constraints601120100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.CENTER;
gbl.setConstraints(ticketTypeconstraints);
this.add(ticketType);
buildConstraints(constraints70110100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.EAST;
gbl.setConstraints(label5constraints);
this.add(label5);
buildConstraints(constraints80110100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=GridBagConstraints.CENTER;
gbl.setConstraints(cabinClassconstraints);
this.add(cabinClass);
buildConstraints(constraints521120100);
constraints.fill=GridBagConstraints.NONE;
constraints.anchor=Grid
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-05-15 19:34 airline\
文件 678 2008-04-01 21:12 airline\.classpath
文件 435 2008-04-06 23:13 airline\.myhibernatedata
文件 66 2008-04-06 23:15 airline\.myumldata
文件 717 2008-03-31 07:39 airline\.project
目录 0 2008-03-31 07:41 airline\.settings\
文件 153 2008-03-31 07:41 airline\.settings\com.genuitec.eclipse.core.prefs
文件 2701 2008-05-15 19:34 airline\airline.sql
目录 0 2008-05-15 19:26 airline\bin\
目录 0 2008-04-05 15:02 airline\bin\com\
目录 0 2008-04-05 15:02 airline\bin\com\tarena\
目录 0 2008-04-05 15:02 airline\bin\com\tarena\abs\
目录 0 2008-04-05 15:02 airline\bin\com\tarena\abs\client\
文件 5602 2008-04-05 15:10 airline\bin\com\tarena\abs\client\AddOrderItemPanel.class
文件 2348 2008-04-05 15:02 airline\bin\com\tarena\abs\client\ClientMainClass.class
文件 1808 2008-05-15 19:14 airline\bin\com\tarena\abs\client\ClientMainfr
文件 4568 2008-05-15 19:14 airline\bin\com\tarena\abs\client\ClientMainfr
文件 2156 2008-05-15 19:14 airline\bin\com\tarena\abs\client\FlightTableModel.class
文件 4657 2008-04-05 22:21 airline\bin\com\tarena\abs\client\Loginfr
文件 4140 2008-05-15 19:15 airline\bin\com\tarena\abs\client\ModifyAgentPasswdDialog.class
文件 5666 2008-04-06 12:13 airline\bin\com\tarena\abs\client\Orderfr
文件 4485 2008-04-05 22:29 airline\bin\com\tarena\abs\client\OrderItemPanel.class
文件 5505 2008-04-05 15:02 airline\bin\com\tarena\abs\client\SeachFlightPanel.class
目录 0 2008-05-15 19:12 airline\bin\com\tarena\abs\dao\
文件 438 2008-04-05 16:14 airline\bin\com\tarena\abs\dao\BranchDAO.class
文件 7548 2008-04-05 16:22 airline\bin\com\tarena\abs\dao\BranchDaoFromFile.class
文件 4704 2008-04-06 17:37 airline\bin\com\tarena\abs\dao\BranchDaoFromHbn.class
文件 543 2008-04-16 21:16 airline\bin\com\tarena\abs\dao\FlightDAO.class
文件 11366 2008-04-05 15:10 airline\bin\com\tarena\abs\dao\FlightDaoFromFile.class
文件 5928 2008-04-05 15:02 airline\bin\com\tarena\abs\dao\FlightDaoFromHbn.class
文件 1062 2008-04-05 15:02 airline\bin\com\tarena\abs\dao\HbnUtil.class
............此处省略128个文件信息
评论
共有 条评论