




如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
基于java航空售票系统(范文) 第一篇:基于java航空售票系统(范文)publicFlightBook()//构造函数{super(“航空订票”);this.setSize(600,400);this.setLocation(300,240);this.setResizable(false);this.setVisible(true);this.setLayout(newBorderLayout());JPanelpanel=newJPanel(newGridLayout(11,1));this.add(panel,BorderLayout.WEST);this.setBackground(Color.blue);button_ask=newJButton(“查询”);panel.add(button_ask);button_ask.addActionListener(this);button_book=newJButton(“订票”);panel.add(button_book);button_book.addActionListener(this);button_cancel=newJButton(“退票”);panel.add(button_cancel);button_cancel.addActionListener(this);text_user=newJTextArea();this.add(text_user,BorderLayout.CENTER);frame_cx=newJFrame(“输入”);//查询输入框frame_cx.setSize(280,120);frame_cx.setResizable(false);frame_cx.setBackground(Color.LIGHT_GRAY);frame_cx.setLayout(newFlowLayout());frame_cx.add(newJLabel(“终点站:”));text_field1=newJTextField(20);frame_cx.add(text_field1);button_ok1=newJButton(“ok”);frame_cx.add(button_ok1);button_ok1.addActionListener(this);frame_cx.addWindowListener(this);frame_dp=newJFrame(“输入”);//订票输入框frame_dp.setSize(350,150);frame_dp.setResizable(false);frame_dp.setBackground(Color.LIGHT_GRAY);frame_dp.setLayout(newFlowLayout());frame_dp.add(newJLabel(“航班号:”));text_field2=newJTextField(20);frame_dp.add(text_field2);frame_dp.add(newJLabel(“订票数:”));text_field3=newJTextField(20);frame_dp.add(text_field3);button_ok2=newJButton(“确定”);frame_dp.add(button_ok2);button_ok2.addActionListener(this);frame_dp.addWindowListener(this);frame_tp=newJFrame(“输入”);//退票输入框frame_tp.setSize(350,150);frame_tp.setResizable(false);frame_tp.setBackground(Color.LIGHT_GRAY);frame_tp.setLayout(newFlowLayout());frame_tp.add(newJLabel(“日期:”));text_field4=newJTextField(20);frame_tp.add(text_field4);frame_tp.add(newJLabel(“航班号:”));text_field5=newJTextField(20);frame_tp.add(text_field5);button_ok3=newJButton(“正确”);frame_tp.add(button_ok3);button_ok3.addActionListener(this);frame_tp.addWindowListener(this);dialog_cx=newJDialog(this,“提示”,true);//提示查询输入航线未开通错误dialog_c

Ja****20
实名认证
内容提供者


最近下载
一种基于双轨缆道的牵引式雷达波在线测流系统.pdf
一种基于双轨缆道的牵引式雷达波在线测流系统.pdf
一种胃肠道超声检查助显剂及其制备方法.pdf
201651206021+莫武林+浅析在互联网时代下酒店的营销策略——以湛江民大喜来登酒店为例.doc
201651206021+莫武林+浅析在互联网时代下酒店的营销策略——以湛江民大喜来登酒店为例.doc
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf
用于空间热电转换的耐高温涡轮发电机转子及其装配方法.pdf