现在类写的好多叻 , 添加事件 或者添加组建的时候没错的地方也经常报错.编译不了..???
有的地方多加点空格就没错叻,, 有的地方注释掉原来的,复制一遍在原来代码下面或者上面也就没问题叻.
有些就解决不了叻.
不知道是不是工具不够完整还是怎么的
看学校机房的 JBuilder有1G 我这里只有800多MB
----------------解决方案--------------------------------------------------------
没人知道嘛???
----------------解决方案--------------------------------------------------------
把代码帖上来看看
----------------解决方案--------------------------------------------------------
代码多了就要注意细节!!!
----------------解决方案--------------------------------------------------------
我现在是一个项目..
几十个类啊//.
就是有时候 运行了再添加一些组件 就无故的报错... 少字母的
----------------解决方案--------------------------------------------------------
package fight;
import java.awt.*;
import javax.swing.*;
import java.util.Vector;
import javax.swing.table.DefaultTableModel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseAdapter;
//import com.borland.jbcl.layout.XYLayout;
//import com.borland.jbcl.layout.*;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class 航班管理系统
extends JPanel {
java.util.Vector v;
BorderLayout borderLayout1 = new BorderLayout();
JTabbedPane jTabbedPane1 = new JTabbedPane();
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
JPanel jPanel3 = new JPanel();
JPanel jPanel4 = 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();
JLabel jLabel8 = new JLabel();
JLabel jLabel9 = new JLabel();
JLabel jLabel10 = new JLabel();
JLabel jLabel11 = new JLabel();
JLabel jLabel12 = new JLabel();
JLabel jLabel13 = 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();
JComboBox jComboBox1 = new JComboBox(new Object[]{"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"});
JComboBox jComboBox2 = new JComboBox(new Object[]{"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"});
JLabel jLabel14 = new JLabel();
JComboBox jComboBox3 = new JComboBox(new Object[]{"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"});
JComboBox jComboBox4 = new JComboBox(new Object[]{"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"});
JLabel jLabel15 = new JLabel();
JTextField jTextField7 = new JTextField();
JTextField jTextField8 = new JTextField();
JTextField jTextField9 = new JTextField();
JTextField jTextField10 = new JTextField();
JLabel jLabel16 = new JLabel();
JButton jButton1 = new JButton();
JLabel jLabel17 = new JLabel();
JLabel jLabel18 = new JLabel();
主窗体 f;
JLabel jLabel23 = new JLabel();
JScrollPane jScrollPane1 = new JScrollPane();
JTable jTable1 = new JTable();
JButton jButton3 = new JButton();
JTextField jTextField23 = new JTextField();
JLabel jLabel24 = new JLabel();
JLabel jLabel25 = new JLabel();
JComboBox jComboBox5 = new JComboBox(new Object[]{"请选择航空公司","北航","南航","海航"});
JButton jButton4 = new JButton();
JButton jButton5 = new JButton();
JButton jButton6 = new JButton();
JScrollPane jScrollPane2 = new JScrollPane();
JButton jButton2 = new JButton();
JTable jTable2 = new JTable();
JButton jButton7 = new JButton();
JLabel jLabel19 = new JLabel();
JLabel jLabel20 = new JLabel();
JLabel jLabel21 = new JLabel();
JLabel jLabel22 = new JLabel();
JLabel jLabel26 = new JLabel();
JScrollPane jScrollPane3 = new JScrollPane();
JTable jTable3 = new JTable();
JLabel jLabel27 = new JLabel();
JLabel jLabel28 = new JLabel();
JScrollPane jScrollPane4 = new JScrollPane();
public 航班管理系统(主窗体 f) {
this.f=f;
try {
jbInit();
}
catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setLayout(null);
this.setSize(new Dimension(700, 539));
this.setBounds(new Rectangle( 0, 0,700, 539));
jTabbedPane1.setBounds(new Rectangle(0, 0, 700, 539));
jPanel1.setFont(new java.awt.Font("Dialog", Font.BOLD, 15));
jPanel1.setLayout(null);
jPanel4.setLayout(null);
jLabel1.setText("基本信息");
jLabel1.setBounds(new Rectangle(8, 14, 112, 29));
jLabel2.setText("航班号");
jLabel2.setBounds(new Rectangle(14, 54, 76, 32));
jLabel3.setText("公司");
jLabel3.setBounds(new Rectangle(17, 97, 76, 35));
jLabel4.setText("起飞地");
jLabel4.setBounds(new Rectangle(17, 158, 76, 31));
jLabel5.setText("起飞时间");
jLabel5.setBounds(new Rectangle(17, 208, 76, 35));
jLabel6.setText("儿童票价");
jLabel6.setBounds(new Rectangle(17, 262, 76, 33));
jLabel7.setText("提前折扣");
jLabel7.setBounds(new Rectangle(18, 305, 76, 36));
jLabel8.setText("班期");
jLabel8.setBounds(new Rectangle(269, 49, 64, 35));
jLabel9.setText("座位");
jLabel9.setBounds(new Rectangle(273, 101, 84, 35));
jLabel10.setText("抵达地");
jLabel10.setBounds(new Rectangle(273, 158, 73, 31));
jLabel11.setText("抵达时间");
jLabel11.setBounds(new Rectangle(274, 208, 67, 34));
jLabel12.setText("成人票价");
jLabel12.setBounds(new Rectangle(275, 262, 84, 35));
jLabel13.setText("退票率");
jLabel13.setBounds(new Rectangle(275, 311, 84, 33));
jTextField1.setBounds(new Rectangle(96, 54, 127, 28));
jTextField2.setBounds(new Rectangle(96, 107, 127, 28));
jTextField3.setBounds(new Rectangle(96, 158, 127, 28));
jTextField4.setBounds(new Rectangle(360, 54, 127, 28));
jTextField5.setBounds(new Rectangle(360, 108, 127, 28));
jTextField6.setBounds(new Rectangle(360, 158, 127, 28));
jComboBox1.setBounds(new Rectangle(90, 216, 62, 24));
jComboBox2.setBounds(new Rectangle(185, 216, 62, 24));
jLabel14.setText("时");
jLabel14.setBounds(new Rectangle(163, 213, 34, 25));
jComboBox3.setBounds(new Rectangle(331, 216, 62, 24));
jComboBox4.setBounds(new Rectangle(437, 216, 62, 24));
jLabel15.setText("时");
jLabel15.setBounds(new Rectangle(403, 211, 30, 31));
jTextField7.setBounds(new Rectangle(96, 262, 127, 28));
jTextField8.setBounds(new Rectangle(96, 311, 127, 28));
jTextField9.setBounds(new Rectangle(360, 262, 127, 28));
jTextField10.setBounds(new Rectangle(360, 311, 127, 28));
jLabel16.setText("操作");
jLabel16.setBounds(new Rectangle(8, 358, 73, 33));
jButton1.setBounds(new Rectangle(220, 412, 93, 34));
jButton1.setText("插入");
jButton1.addActionListener(new 航班管理系统_jButton1_actionAdapter(this));
jLabel17.setBorder(BorderFactory.createEtchedBorder());
jLabel17.setBounds(new Rectangle(8, 388, 505, 94));
jLabel18.setBorder(BorderFactory.createEtchedBorder());
jLabel18.setBounds(new Rectangle(7, 40, 505, 318));
jPanel3.setLayout(null);
jPanel2.setLayout(null);
jLabel23.setFont(new java.awt.Font("Dialog", Font.BOLD, 15));
jLabel23.setText(" 航 班 信 息");
jLabel23.setBounds(new Rectangle(219, 22, 186, 32));
jScrollPane1.setBounds(new Rectangle(5, 59, 687, 280));
jButton3.setBounds(new Rectangle(144, 349, 105, 35));
jButton3.setText("按航班号搜索");
jButton3.addActionListener(new 航班管理系统_jButton3_actionAdapter(this));
jTextField23.setBounds(new Rectangle(53, 349, 85, 33));
jLabel24.setText("航班号:");
jLabel24.setBounds(new Rectangle(5, 348, 78, 35));
jLabel25.setText("航空公司:");
jLabel25.setBounds(new Rectangle(262, 351, 75, 33));
jComboBox5.setBounds(new Rectangle(316, 352, 119, 31));
jButton4.setBounds(new Rectangle(441, 349, 105, 35));
jButton4.setMargin(new Insets(0, 0, 0, 0));
jButton4.setText("按航空公司搜索");
jButton4.addActionListener(new 航班管理系统_jButton4_actionAdapter(this));
jButton5.setBounds(new Rectangle(243, 420, 112, 37));
jButton5.setMargin(new Insets(0, 0, 0, 0));
jButton5.setText("删除航班");
jButton5.addActionListener(new 航班管理系统_jButton5_actionAdapter(this));
jButton6.setBounds(new Rectangle(442, 22, 117, 29));
jButton6.setMargin(new Insets(0, 0, 0, 0));
jButton6.setText("显全部航班信息");
jButton6.addActionListener(new 航班管理系统_jButton6_actionAdapter(this));
jScrollPane2.setBounds(new Rectangle(5, 59, 687, 280));
jButton2.setBounds(new Rectangle(442, 22, 117, 29));
jButton2.setMargin(new Insets(0, 0, 0, 0));
jButton2.setText("显 示 所 有 航 班");
jButton2.addActionListener(new 航班管理系统_jButton2_actionAdapter(this));
jButton7.setBounds(new Rectangle(442, 366, 117, 29));
jButton7.setText("更新此航班");
jButton7.addActionListener(new 航班管理系统_jButton7_actionAdapter(this));
jLabel19.setFont(new java.awt.Font("Dialog", Font.BOLD, 15));
jLabel19.setText(" 航 班 信 息");
jLabel19.setBounds(new Rectangle(219, 22, 186, 32));
jLabel20.setText("返回主界面");
jLabel20.setBounds(new Rectangle(569, 21, 105, 30));
jLabel20.addMouseListener(new 航班管理系统_jLabel20_mouseAdapter(this));
jLabel21.setText("返回主界面");
jLabel21.setBounds(new Rectangle(569, 21, 105, 30));
jLabel21.addMouseListener(new 航班管理系统_jLabel21_mouseAdapter(this));
jLabel22.setText("返回主界面");
jLabel22.setBounds(new Rectangle(569, 11, 105, 30));
jLabel22.addMouseListener(new 航班管理系统_jLabel22_mouseAdapter(this));
jLabel26.setText("返回主界面");
jLabel26.setBounds(new Rectangle(569, 21, 105, 30));
jLabel26.addMouseListener(new 航班管理系统_jLabel26_mouseAdapter(this));
jScrollPane3.setBounds(new Rectangle(1, 44, 687, 194));
jLabel27.setFont(new java.awt.Font("华文行楷", Font.PLAIN, 15));
jLabel27.setBorder(null);
jLabel27.setText("航 班 定 票 记 录 表");
jLabel27.setBounds(new Rectangle(258, 11, 178, 28));
jTable3.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
jLabel28.setText(" 航 班 已 定 票 数 表");
jLabel28.setBounds(new Rectangle(258, 242, 178, 28));
jScrollPane4.setBounds(new Rectangle(6, 280, 376, 180));
this.add(jTabbedPane1);
jTabbedPane1.add(jPanel1, "插 入");
jPanel1.add(jLabel1);
jPanel1.add(jTextField3);
jPanel1.add(jTextField5);
jPanel1.add(jLabel9);
jPanel1.add(jTextField2);
jPanel1.add(jLabel3);
jPanel1.add(jLabel4);
jPanel1.add(jLabel10);
jPanel1.add(jLabel5);
jPanel1.add(jLabel11);
jPanel1.add(jComboBox3);
jPanel1.add(jComboBox4);
jPanel1.add(jLabel14);
jPanel1.add(jComboBox1);
jPanel1.add(jTextField8);
jPanel1.add(jLabel6);
jPanel1.add(jTextField7);
jPanel1.add(jLabel12);
jPanel1.add(jTextField9);
jPanel1.add(jLabel13);
jPanel1.add(jTextField10);
jPanel1.add(jComboBox2);
jPanel1.add(jLabel15);
jPanel1.add(jLabel16);
jPanel1.add(jButton1);
jPanel1.add(jLabel17);
jPanel1.add(jTextField1);
jPanel1.add(jLabel2);
jPanel1.add(jTextField4);
jPanel1.add(jLabel8);
jPanel1.add(jTextField6);
jPanel1.add(jLabel18);
jPanel1.add(jLabel7);
jPanel1.add(jLabel26);
jTabbedPane1.add(jPanel2, "删 除");
jPanel2.add(jLabel23);
jPanel2.add(jScrollPane1);
jPanel2.add(jLabel24);
jPanel2.add(jTextField23);
jPanel2.add(jButton3);
jPanel2.add(jLabel25);
jPanel2.add(jComboBox5);
jPanel2.add(jButton4);
jPanel2.add(jButton6);
jPanel2.add(jButton5);
jPanel2.add(jLabel20);
jScrollPane1.getViewport().add(jTable1);
jTabbedPane1.add(jPanel3, "更 新");
jPanel3.add(jScrollPane2);
jScrollPane2.getViewport().add(jTable2);
jPanel3.add(jButton2);
jPanel3.add(jButton7);
jPanel3.add(jLabel19);
jPanel3.add(jLabel21);
jPanel4.add(jLabel22);
jPanel4.add(jScrollPane3);
jPanel4.add(jLabel27);
jPanel4.add(jLabel28);
jPanel4.add(jScrollPane4);
jScrollPane3.getViewport().add(jTable3);
jTabbedPane1.add(jPanel4, "查看数据库");
this.jTable1.setModel(this.getModel(null));
this.jTable2.setModel(this.getModel(null));
this.jTable3.setModel(this.getModel1(null));
this.jLabel26.setCursor(new Cursor(Cursor.HAND_CURSOR));
this.jLabel20.setCursor(new Cursor(Cursor.HAND_CURSOR));
this.jLabel21.setCursor(new Cursor(Cursor.HAND_CURSOR));
this.jLabel22.setCursor(new Cursor(Cursor.HAND_CURSOR));
}
private javax.swing.table.DefaultTableModel getModel(Vector cs){
java.util.Vector cols=new Vector();
cols.add("航班号");
cols.add("航空公司");
cols.add("起飞地");
cols.add("抵达地");
cols.add("起飞时间");
cols.add("到达时间");
cols.add("儿童票价");
cols.add("成人票价");
cols.add("提前折扣");
cols.add("退票率");
cols.add("座位");
cols.add("班期");
java.util.Vector cells=cs;
javax.swing.table.DefaultTableModel m=new DefaultTableModel(cells,cols);
return m;
}
private javax.swing.table.DefaultTableModel getModel1(Vector cs) {
java.util.Vector cols = new Vector();
cols.add("定单号");
cols.add("客户姓名");
cols.add("证件号");
cols.add("第一航班号");
cols.add("第二航班号");
cols.add("机票类型");
cols.add("出发日期");
cols.add("到达日期");
cols.add("儿童票数");
cols.add("成人票数");
cols.add("成人票总价");
cols.add("联系电话");
cols.add("E-Mail");
cols.add("简短留言");
java.util.Vector cells = cs;
javax.swing.table.DefaultTableModel m = new DefaultTableModel(cells, cols);
return m;
}
public void jButton3_actionPerformed(ActionEvent e) {
try {
String fn=this.jTextField23.getText().trim();
v = FlyDB.selectByfight(fn);
this.jTable1.setModel(this.getModel(v));
}
catch (Exception ex) {
ex.printStackTrace();
}
}
public void jButton6_actionPerformed(ActionEvent e) {
try {
v = FlyDB.selectgetallfight();
this.jTable1.setModel(this.getModel(v));
}
catch (Exception ex) {
ex.printStackTrace();
}
}
public void jButton1_actionPerformed(ActionEvent e) {
String fn=this.jTextField1.getText();
String af=this.jTextField2.getText();
String start=this.jTextField3.getText();
String dt=this.jTextField6.getText();
String week=this.jTextField4.getText();
String seatstr=this.jTextField5.getText();
int seatnum=Integer.parseInt(seatstr);
String child=this.jTextField7.getText();
String au=this.jTextField9.getText();
String di1=this.jTextField8.getText();
String di2=this.jTextField10.getText();
String l1=this.jComboBox1.getSelectedItem().toString();
String l2=this.jComboBox2.getSelectedItem().toString();
String leaveTime=l1+":"+l2;
String l3=this.jComboBox3.getSelectedItem().toString();
String l4=this.jComboBox4.getSelectedItem().toString();
String arriveTime=l3+":"+l4;
Fly f=new Fly();
f.setFlight(fn);
f.setAirfirm(af);
f.setStart(start);
f.setDestination(dt);
f.setLeaveTime(leaveTime);
f.setArriveTime(arriveTime);
f.setChildFare(child);
f.setAdultFare(au);
f.setDiscount1(di1);
f.setDiscount2(di2);
f.setSeat(seatnum);
f.setWeek(week);
try {
if(FlyDB.insertDB(f)==1){
javax.swing.JOptionPane.showMessageDialog(this,"添加航班成功!");
}else{
javax.swing.JOptionPane.showMessageDialog(this,"添加航班不成功!");
return;
}
}
catch (Exception ex) {
javax.swing.JOptionPane.showMessageDialog(this,"添加航班不成功!");
ex.printStackTrace();
}
}
public void jButton4_actionPerformed(ActionEvent e) {
String airfirm=this.jComboBox5.getSelectedItem().toString();
try {
v = FlyDB.selectByairfirm(airfirm);
this.jTable1.setModel(this.getModel(v));
}
catch (Exception ex) {
ex.printStackTrace();
}
}
public void jButton5_actionPerformed(ActionEvent e) {
int row1=this.jTable1.getSelectedRow();
if(row1<0){
javax.swing.JOptionPane.showMessageDialog(this,"你还没有选中行!");
return;
}
String fn11=this.jTable1.getValueAt(row1,0).toString().trim();
try {
if (FlyDB.deleteDB(fn11) == 1) {
javax.swing.JOptionPane.showMessageDialog(this,"删除成功!");
javax.swing.table.DefaultTableModel m=(javax.swing.table.DefaultTableModel)jTable1.getModel();
m.removeRow(row1);
}
}
catch (Exception ex) {
ex.printStackTrace();
}
}
public void jButton2_actionPerformed(ActionEvent e) {
try {
v = FlyDB.selectgetallfight();
this.jTable2.setModel(this.getModel(v));
}
catch (Exception ex) {
ex.printStackTrace();
}
}
public void jButton7_actionPerformed(ActionEvent e) {
int row=this.jTable2.getSelectedRow();
if(row<0){
javax.swing.JOptionPane.showMessageDialog(this,"你还没有选中行!");
return;
}
String fn=this.jTable2.getValueAt(row,0).toString();
String af=this.jTable2.getValueAt(row,1).toString();
String st=this.jTable2.getValueAt(row,2).toString();
String dt=this.jTable2.getValueAt(row,3).toString();
String lt=this.jTable2.getValueAt(row,4).toString();
String at=this.jTable2.getValueAt(row,5).toString();
String cF=this.jTable2.getValueAt(row,6).toString();
String aF=this.jTable2.getValueAt(row,7).toString();
String di1=this.jTable2.getValueAt(row,8).toString();
String di2=this.jTable2.getValueAt(row,9).toString();
String seat=this.jTable2.getValueAt(row,10).toString();
String week=this.jTable2.getValueAt(row,11).toString();
Fly f11=new Fly();
f11.setFlight(fn);
f11.setAirfirm(af);
f11.setStart(st);
f11.setDestination(dt);
f11.setLeaveTime(lt);
f11.setArriveTime(at);
f11.setChildFare(cF);
f11.setAdultFare(aF);
f11.setDiscount1(di1);
f11.setDiscount2(di2);
f11.setSeat(Integer.parseInt(seat));
f11.setWeek(week);
this.f.setResizable(true);
this.f.setVisible(true);
this.f.remove(this.f.jPanel1);
this.f.jPanel1=new UpdateFlight(this.jTable2,f11,this.f);
this.f.getContentPane().add(this.f.jPanel1);
this.repaint();
this.validate();
this.f.setTitle("航班管理系统-更新航班");
}
public void jLabel26_mouseClicked(MouseEvent e) {
this.f.setVisible(true);
this.f.remove(this.f.jPanel1);
this.f.jPanel1=new 主界面(this.f);
this.f.getContentPane().add(this.f.jPanel1);
this.f.repaint();
this.f.validate();
}
public void jLabel20_mouseClicked(MouseEvent e) {
this.f.setVisible(true);
this.f.remove(this.f.jPanel1);
this.f.jPanel1=new 主界面(this.f);
this.f.getContentPane().add(this.f.jPanel1);
this.f.repaint();
this.f.validate();
}
public void jLabel21_mouseClicked(MouseEvent e) {
this.f.setVisible(true);
this.f.remove(this.f.jPanel1);
this.f.jPanel1=new 主界面(this.f);
this.f.getContentPane().add(this.f.jPanel1);
this.f.repaint();
this.f.validate();
}
public void jLabel22_mouseClicked(MouseEvent e) {
this.f.setVisible(true);
this.f.remove(this.f.jPanel1);
this.f.jPanel1=new 主界面(this.f);
this.f.getContentPane().add(this.f.jPanel1);
this.f.repaint();
this.f.validate();
}
}
class 航班管理系统_jLabel22_mouseAdapter
extends MouseAdapter {
private 航班管理系统 adaptee;
航班管理系统_jLabel22_mouseAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void mouseClicked(MouseEvent e) {
adaptee.jLabel22_mouseClicked(e);
}
}
class 航班管理系统_jLabel21_mouseAdapter
extends MouseAdapter {
private 航班管理系统 adaptee;
航班管理系统_jLabel21_mouseAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void mouseClicked(MouseEvent e) {
adaptee.jLabel21_mouseClicked(e);
}
}
class 航班管理系统_jLabel26_mouseAdapter
extends MouseAdapter {
private 航班管理系统 adaptee;
航班管理系统_jLabel26_mouseAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void mouseClicked(MouseEvent e) {
adaptee.jLabel26_mouseClicked(e);
}
}
class 航班管理系统_jLabel20_mouseAdapter
extends MouseAdapter {
private 航班管理系统 adaptee;
航班管理系统_jLabel20_mouseAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void mouseClicked(MouseEvent e) {
adaptee.jLabel20_mouseClicked(e);
}
}
class 航班管理系统_jButton7_actionAdapter
implements ActionListener {
private 航班管理系统 adaptee;
航班管理系统_jButton7_actionAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton7_actionPerformed(e);
}
}
class 航班管理系统_jButton2_actionAdapter
implements ActionListener {
private 航班管理系统 adaptee;
航班管理系统_jButton2_actionAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton2_actionPerformed(e);
}
}
class 航班管理系统_jButton5_actionAdapter
implements ActionListener {
private 航班管理系统 adaptee;
航班管理系统_jButton5_actionAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton5_actionPerformed(e);
}
}
class 航班管理系统_jButton4_actionAdapter
implements ActionListener {
private 航班管理系统 adaptee;
航班管理系统_jButton4_actionAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton4_actionPerformed(e);
}
}
class 航班管理系统_jButton1_actionAdapter
implements ActionListener {
private 航班管理系统 adaptee;
航班管理系统_jButton1_actionAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
class 航班管理系统_jButton6_actionAdapter
implements ActionListener {
private 航班管理系统 adaptee;
航班管理系统_jButton6_actionAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton6_actionPerformed(e);
}
}
class 航班管理系统_jButton3_actionAdapter
implements ActionListener {
private 航班管理系统 adaptee;
航班管理系统_jButton3_actionAdapter(航班管理系统 adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
}
}
----------------解决方案--------------------------------------------------------
其中一个 我修改一下字体都报错
----------------解决方案--------------------------------------------------------
有时候是由于JBuider破解得不好的原因 相同的代码重新建个工程粘上去就没问题了
----------------解决方案--------------------------------------------------------
LZ是青鸟的?我也是
----------------解决方案--------------------------------------------------------