clientframe.java~539~

来自「济南公交管理系统 (不完善,没有解决循环线路问题)」· JAVA~539~ 代码 · 共 1,302 行 · 第 1/4 页

JAVA~539~
1,302
字号
  void jMenuItem1_actionPerformed(ActionEvent e) { //进入管理界面
    this.dispose(); //关掉查询窗口
    busmanage jnbusm = new busmanage();
  }

//***************************************************************************//
//***************************************************************************//
  void jLabel7_mouseClicked(MouseEvent e) {
    //设置超链接
    //jLabel7.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    try {
      Runtime rt = Runtime.getRuntime();
      rt.exec("rundll32 url.dll,FileProtocolHandler http://www.bus84.com/index");
    }
    catch (Exception link) {
      JOptionPane.showMessageDialog(null, "出现链接异常,请与管理员联系", "网络问题",
                                    JOptionPane.WARNING_MESSAGE);
    }
    //要设置鼠标指针为手形则修改属性

    //jLabel7.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
  }

  void jLabel8_mouseClicked(MouseEvent e) {
    //设置超链接
    try {
      Runtime rt = Runtime.getRuntime();
      rt.exec(
          "rundll32 url.dll,FileProtocolHandler http://www.bjbus.com/index.htm");
    }
    catch (Exception link) {
      JOptionPane.showMessageDialog(null, "出现链接异常,请与管理员联系", "网络问题",
                                    JOptionPane.WARNING_MESSAGE);
    }
    //要设置鼠标指针为手形则修改属性

  }

  void jLabel9_mouseClicked(MouseEvent e) {
    //设置超链接
    try {
      Runtime rt = Runtime.getRuntime();
      rt.exec("rundll32 url.dll,FileProtocolHandler http://www.e-tourchina.com/laisd/jn/lai-jijing.htm");
    }
    catch (Exception link) {
      JOptionPane.showMessageDialog(null, "出现链接异常,请与管理员联系", "网络问题",
                                    JOptionPane.WARNING_MESSAGE);
    }
    //要设置鼠标指针为手形则修改属性

  }

  void jLabel10_mouseClicked(MouseEvent e) {
    //设置超链接
    try {
      Runtime rt = Runtime.getRuntime();
      rt.exec("rundll32 url.dll,FileProtocolHandler http://www.8684.cn");
    }
    catch (Exception link) {
      JOptionPane.showMessageDialog(null, "出现链接异常,请与管理员联系", "网络问题",
                                    JOptionPane.WARNING_MESSAGE);
    }
    //要设置鼠标指针为手形则修改属性

  }

//***************************************************************************//
//***************************************************************************//
  void jMenuItem6_actionPerformed(ActionEvent e) {
    //打开关于系统
    about a = new about();
    a.setSize(300, 150);
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = a.getSize();
    if (frameSize.height > screenSize.height) {
      frameSize.height = screenSize.height;
    }
    if (frameSize.width > screenSize.width) {
      frameSize.width = screenSize.width;
    }
    a.setLocation( (screenSize.width - frameSize.width) / 2,
                  (screenSize.height - frameSize.height) / 2);
    a.setVisible(true);
    //a.show();
  }

  void jButton4_actionPerformed(ActionEvent e) {
    jPanel10.setVisible(true);
    jPanel11.setVisible(false);
    jPanel12.setVisible(false);
    jPanel3.setVisible(false);
  }

  void jButton5_actionPerformed(ActionEvent e) {
    jPanel10.setVisible(false);
    jPanel11.setVisible(true);
    jPanel12.setVisible(false);
    jPanel3.setVisible(false);

  }

  void jButton6_actionPerformed(ActionEvent e) {
    jPanel10.setVisible(false);
    jPanel11.setVisible(false);
    jPanel12.setVisible(true);
    jPanel3.setVisible(false);

  }

  void jButton7_actionPerformed(ActionEvent e) {
    jPanel10.setVisible(false);
    jPanel11.setVisible(false);
    jPanel12.setVisible(false);
    jPanel13.setVisible(true);

  }
//***************************************************************************//
//***************************************************************************//

  /* void jComboBox1_keyTyped(KeyEvent e) {
     //
       String start_station_name=(String)jComboBox1.getEditor().getItem();//取得输入的站点名字
     System.out.println(start_station_name);
     String sql="select 站点名 from stationinfo where 站点名 like '%"+start_station_name+"%'";//进行模糊查询
     ResultSet rs;
     try{
       rs = con.stmt.executeQuery(sql);
       while(rs.next()){
         String station_name=rs.getString("站点名");
         jComboBox1.addItem(station_name.trim());//把查询结果加入jcombobox1中
     }
   }
     catch(SQLException e1){
     }
   }*/

}

class clientFrame_jMenuItem2_actionAdapter
    implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jMenuItem2_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.jMenuItem2_actionPerformed(e);
  }
}

class clientFrame_jButton1_actionAdapter
    implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jButton1_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.jButton1_actionPerformed(e);
  }
}

class clientFrame_jButton2_actionAdapter
    implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jButton2_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.jButton2_actionPerformed(e);
  }
}

class clientFrame_jButton3_actionAdapter
    implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jButton3_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.jButton3_actionPerformed(e);
  }
}

class clientFrame_jLabel1_mouseAdapter
    extends java.awt.event.MouseAdapter {
  clientFrame adaptee;

  clientFrame_jLabel1_mouseAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void mouseClicked(MouseEvent e) {
    //adaptee.jLabel1_mouseClicked(e);
  }
}

class clientFrame_jMenuItem1_actionAdapter
    implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jMenuItem1_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.jMenuItem1_actionPerformed(e);
  }
}

class clientFrame_jLabel7_mouseAdapter
    extends java.awt.event.MouseAdapter {
  clientFrame adaptee;

  clientFrame_jLabel7_mouseAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void mouseClicked(MouseEvent e) {
    adaptee.jLabel7_mouseClicked(e);
  }
}

class clientFrame_jLabel8_mouseAdapter
    extends java.awt.event.MouseAdapter {
  clientFrame adaptee;

  clientFrame_jLabel8_mouseAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void mouseClicked(MouseEvent e) {
    adaptee.jLabel8_mouseClicked(e);
  }
}

class clientFrame_jLabel9_mouseAdapter
    extends java.awt.event.MouseAdapter {
  clientFrame adaptee;

  clientFrame_jLabel9_mouseAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void mouseClicked(MouseEvent e) {
    adaptee.jLabel9_mouseClicked(e);
  }
}

class clientFrame_jLabel10_mouseAdapter
    extends java.awt.event.MouseAdapter {
  clientFrame adaptee;

  clientFrame_jLabel10_mouseAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void mouseClicked(MouseEvent e) {
    adaptee.jLabel10_mouseClicked(e);
  }
}

class clientFrame_jMenuItem6_actionAdapter
    implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jMenuItem6_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.jMenuItem6_actionPerformed(e);
  }
}

class clientFrame_jButton4_actionAdapter implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jButton4_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton4_actionPerformed(e);
  }
}

class clientFrame_jButton5_actionAdapter implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jButton5_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton5_actionPerformed(e);
  }
}

class clientFrame_jButton6_actionAdapter implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jButton6_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton6_actionPerformed(e);
  }
}

class clientFrame_jButton7_actionAdapter implements java.awt.event.ActionListener {
  clientFrame adaptee;

  clientFrame_jButton7_actionAdapter(clientFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton7_actionPerformed(e);
  }
}

⌨️ 快捷键说明

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