亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? student_information.java~80~

?? 成績(jī)管理系統(tǒng)可以對(duì)學(xué)生、課程、選課、成績(jī)的錄入、班級(jí)、用戶的信息進(jìn)行管理等
?? JAVA~80~
字號(hào):
package coursedesign;

import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import com.borland.dbswing.JdbTable;
import com.borland.dbswing.JdbStatusLabel;
import com.borland.dbswing.JdbNavToolBar;
import com.borland.dx.sql.dataset.Database;
import com.borland.dx.dataset.DataSetView;
import com.borland.datastore.DataStore;
import com.borland.dx.sql.dataset.ConnectionDescriptor;
import com.borland.dx.sql.dataset.QueryDataSet;
import com.borland.dx.sql.dataset.QueryResolver;
import com.borland.dx.sql.dataset.Load;
import com.borland.dx.sql.dataset.QueryDescriptor;
import com.borland.dbswing.JdbTextField;
import com.borland.dbswing.TableScrollPane;
import com.borland.dbswing.JdbList;
import com.borland.dbswing.JdbSlider;
import com.borland.dbswing.JdbEditorPane;
import com.borland.dbswing.JdbLabel;
import java.sql.ResultSet;
import javax.swing.JOptionPane;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Student_Information
    extends JFrame {
  JButton jButton1 = new JButton();
  XYLayout xYLayout1 = new XYLayout();
  JButton jButton2 = new JButton();
  JButton jButton3 = new JButton();
  JButton jButton4 = new JButton();
  JdbTable jdbTable1 = new JdbTable();
  JdbNavToolBar jdbNavToolBar1 = new JdbNavToolBar();
  Database student = new Database();
  QueryDataSet queryDataSet1 = new QueryDataSet();
  QueryResolver queryResolver1 = new QueryResolver();
  JdbTextField jdbTextField1 = new JdbTextField();
  JdbTextField jdbTextField2 = new JdbTextField();
  JdbTextField jdbTextField3 = new JdbTextField();
  JdbTextField jdbTextField4 = new JdbTextField();
  JdbTextField jdbTextField5 = new JdbTextField();
  JLabel jLabel1 = new JLabel();
  JLabel jLabel2 = new JLabel();
  JLabel jLabel3 = new JLabel();
  JLabel jLabel4 = new JLabel();
  JLabel jLabel5 = new JLabel();
  JTextField jTextField1 = new JTextField();
  JTextField jTextField2 = new JTextField();
  JLabel jLabel6 = new JLabel();
  JLabel jLabel7 = new JLabel();
  JButton jButton5 = new JButton();
  public Student_Information() {
    try {
      setDefaultCloseOperation(EXIT_ON_CLOSE);
      jbInit();
    }
    catch (Exception exception) {
      exception.printStackTrace();
    }
  }

  private void jbInit() throws Exception {
    getContentPane().setLayout(xYLayout1);
    this.getContentPane().setBackground(UIManager.getColor(
        "InternalFrame.inactiveTitleForeground"));
    setSize(new Dimension(500, 400));
  setTitle("學(xué)生信息");
    jButton1.setText("退出");
    jButton1.addActionListener(new Student_Information_jButton1_actionAdapter(this));
    jButton2.setToolTipText("");
    jButton2.setAction(null);
    jButton2.setActionCommand("添加");
    jButton2.setText("添加");
    jButton2.addActionListener(new Student_Information_jButton2_actionAdapter(this));
    jButton3.setText("修改");
    jButton3.addActionListener(new Student_Information_jButton3_actionAdapter(this));
    jButton4.setText("刪除");
    jButton4.addActionListener(new Student_Information_jButton4_actionAdapter(this));
    student.setConnection(new ConnectionDescriptor(
        "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=student", "sa",
        "yaya", false, "com.microsoft.jdbc.sqlserver.SQLServerDriver",
        ConnectionDescriptor.arrayToProperties(new String[][] { {"serverName",
                                               ""}, {"hostProcess", ""},
                                               {"user", "sa"}, {"netAddress",
                                               ""},
                                               {"sendStringParametersAsUnicode ",
                                               "true"}, {"programName", ""},
                                               {"databaseName", "student"},
                                               {"selectMethod", "direct"},
                                               {"password", "yaya"},
                                               {"portNumber", "1433"},
    })));
    queryDataSet1.setReadOnly(true);
    queryDataSet1.setResolver(queryResolver1);
    queryDataSet1.setQuery(new QueryDescriptor(student,
                                               "select * from base_info", null, true,
                                               Load.ALL));
    queryResolver1.setDatabase(student);
    queryResolver1.setUpdateMode(com.borland.dx.dataset.UpdateMode.
                                 CHANGED_COLUMNS);
    jdbTable1.setDataSet(queryDataSet1);
    jdbNavToolBar1.setBackground(UIManager.getColor(
        "InternalFrame.inactiveTitleForeground"));

    jdbNavToolBar1.setDataSet(queryDataSet1);
    jdbTextField1.setHorizontalAlignment(SwingConstants.RIGHT);
    jdbTextField1.setColumnName("id");
    jdbTextField1.setDataSet(queryDataSet1);
    jdbTextField2.setHorizontalAlignment(SwingConstants.RIGHT);
    jdbTextField2.setColumnName("name");
    jdbTextField2.setDataSet(queryDataSet1);
    jdbTextField4.setHorizontalAlignment(SwingConstants.RIGHT);
    jdbTextField4.setColumnName("class");
    jdbTextField4.setDataSet(queryDataSet1);
    jdbTextField4.addActionListener(new
        Student_Information_jdbTextField4_actionAdapter(this));
    jdbTextField3.setColumnName("sex");
    jdbTextField3.setDataSet(queryDataSet1);
    jdbTextField5.setHorizontalAlignment(SwingConstants.RIGHT);
    jdbTextField5.setColumnName("address");
    jdbTextField5.setDataSet(queryDataSet1);
    jLabel1.setText("學(xué)號(hào):");
    jLabel2.setText("姓名:");
    jLabel3.setText("班級(jí):");
    jLabel5.setText("地址:");
    jLabel4.setText("性別:");
    jLabel6.setText("學(xué)號(hào):");
    jLabel7.setText("姓名:");
    jButton5.setText("查詢(xún)");
    jButton5.addActionListener(new Student_Information_jButton5_actionAdapter(this));
    this.getContentPane().add(jButton3, new XYConstraints(125, 19, 57, 23));
    this.getContentPane().add(jButton4, new XYConstraints(230, 19, 57, 23));
    this.getContentPane().add(jButton1, new XYConstraints(328, 19, 69, -1));
    this.getContentPane().add(jdbTextField3, new XYConstraints(79, 343, 88, -1));
    this.getContentPane().add(jLabel4, new XYConstraints(21, 345, -1, -1));
    this.getContentPane().add(jLabel5, new XYConstraints(180, 349, -1, -1));
    this.getContentPane().add(jButton2, new XYConstraints(20, 19, 63, -1));
    this.getContentPane().add(jdbTextField2, new XYConstraints(233, 303, 83, -1));
    this.getContentPane().add(jdbTable1, new XYConstraints(0, 182, 500, 100));
    this.getContentPane().add(jdbTextField1, new XYConstraints(69, 303, 91, -1));
    this.getContentPane().add(jLabel1, new XYConstraints(19, 306, 43, -1));
    this.getContentPane().add(jLabel3, new XYConstraints(346, 306, 44, -1));
    this.getContentPane().add(jdbTextField4, new XYConstraints(393, 303, 84, -1));
    this.getContentPane().add(jLabel2, new XYConstraints(178, 306, 40, -1));
    this.getContentPane().add(jdbTextField5, new XYConstraints(235, 344, 72, -1));
    this.getContentPane().add(jdbNavToolBar1,
                              new XYConstraints( -9, 141, 497, -1));
    this.getContentPane().add(jLabel6, new XYConstraints(16, 100, -1, -1));
    this.getContentPane().add(jTextField1, new XYConstraints(87, 94, 76, -1));
    this.getContentPane().add(jLabel7, new XYConstraints(191, 99, -1, -1));
    this.getContentPane().add(jTextField2, new XYConstraints(259, 95, 78, -1));
    this.getContentPane().add(jButton5, new XYConstraints(389, 92, -1, -1));
  }

  public void jButton1_actionPerformed(ActionEvent e) {
    dispose();
  }
//***************************添加學(xué)生信息*********************************
  public void jButton2_actionPerformed(ActionEvent actionEvent) {
    String input1 = JOptionPane.showInputDialog("請(qǐng)輸入學(xué)號(hào):");
    String input2 = JOptionPane.showInputDialog("請(qǐng)輸入姓名:");
    String input3 = JOptionPane.showInputDialog("請(qǐng)輸入班級(jí):");
    String input4 = JOptionPane.showInputDialog("請(qǐng)輸入性別:");
    String input5 = JOptionPane.showInputDialog("請(qǐng)輸入家庭地址:");
    try {
      Jdbcconn conn = new Jdbcconn();
  //連接數(shù)據(jù)庫(kù)
      conn.OpenConn("student", "sa", "yaya");
      String strSQL =
          "insert into base_info (id,name,class,sex,address) values ('" + input1 +
          "','" + input2 + "','" + input3 + "','" + input4 + "','" + input5 +
          "')";
      conn.executeUpdate(strSQL);
       //refreshComponent();
       queryDataSet1.refresh();//有必要加哦,否則表格里不會(huì)顯加新加的信息
      JOptionPane.showMessageDialog(null, "添加成功");
      //System.out.println("name");
    }
    catch (Exception ex) {
      System.out.println(ex.getMessage());
      JOptionPane.showMessageDialog(null, "數(shù)據(jù)庫(kù)沒(méi)有鏈接成功,數(shù)據(jù)沒(méi)有輸入成功!");

    }
  }
  public void jdbTextField4_actionPerformed(ActionEvent e) {

  }
//**********************************查詢(xún)學(xué)生基本信息*************************
  public void jButton5_actionPerformed(ActionEvent e) {
    String  Field1= jTextField1.getText().trim();
    String Field2 = jTextField2.getText().trim();
      if (Field1.equals("") || Field2.equals("")) {
        try{
        JOptionPane.showMessageDialog(null, "學(xué)號(hào)或姓名為空,不能查詢(xún)!");

    }catch (Exception ex) {
      System.out.println(ex.getMessage());
    }
  }//end if
  else
     {
       try{
         String sql="select * from chengjibiao where id='"+Field1+"'";
         queryDataSet1.close();
            //將SQL語(yǔ)句傳給queryDataSet1執(zhí)行。
            queryDataSet1.setQuery(new QueryDescriptor(student, sql, null, true,Load.ALL));

            //將queryDataSet1打開(kāi)
            queryDataSet1.open();
            //刷新queryDataSet1
            queryDataSet1.refresh();
       }//end try
       catch(Exception ex)
       {
         JOptionPane.showMessageDialog(null, "Sorry!成績(jī)都已經(jīng)輸入");
       }//end catch
     }//end else

  }//此事件完成
//******************************修改學(xué)生信息*************************
  public void jButton3_actionPerformed(ActionEvent e) {

String id = jTextField1.getText().trim();
String Field2 = jdbTextField2.getText().trim();
String Field3 = jdbTextField1.getText().trim();
String Field4 = jdbTextField2.getText().trim();
String Field5 = jdbTextField1.getText().trim();
String strSQL;
try {

  Jdbcconn conn = new Jdbcconn();
//連接數(shù)據(jù)庫(kù)
  conn.OpenConn("student", "sa", "yaya");
  strSQL = "update base_info set  name='"+Field2+"',class='"+Field3+"',sex='"+Field4+"',address='"+Field5+"' where id='" +
      id + "'";
  conn.executeUpdate(strSQL);
  JOptionPane.showMessageDialog(null, "修改成功"+strSQL);
  System.out.print("修改成功"+strSQL);
  queryDataSet1.refresh();
}
catch (Exception ex) {
  System.out.println(ex.getMessage());
  JOptionPane.showMessageDialog(null, "數(shù)據(jù)庫(kù)沒(méi)有鏈接成功,數(shù)據(jù)沒(méi)有修改成功!");
} //end catch





  }
  public static void main(String as[]){
    Student_Information dd=new Student_Information();
    dd.setVisible(true);
    dd.setLocationRelativeTo(null);
  }



//****************************刪除學(xué)生信息******************************
  public void jButton4_actionPerformed(ActionEvent e) {
     String input1=JOptionPane.showInputDialog("請(qǐng)輸入要?jiǎng)h除的學(xué)生號(hào)學(xué)號(hào)");
     String input2=JOptionPane.showInputDialog("請(qǐng)輸入要?jiǎng)h除的學(xué)生號(hào)姓名");
     if(input1.equals("")||input2.equals(""))
     {
       JOptionPane.showMessageDialog(null, "你必須輸入學(xué)號(hào)和姓名才能刪除");
     }else{
       Jdbcconn conn = new Jdbcconn();
//連接數(shù)據(jù)庫(kù)
       try {
         conn.OpenConn("student", "sa", "yaya");
         String strSQL = "delete from base_info where id='" + input1 +
             "' and name='" + input2 + "'";
         conn.executeUpdate(strSQL);
         queryDataSet1.refresh();
         JOptionPane.showMessageDialog(null, "刪除成功");

         //System.out.println("name");
       }
       catch (Exception ex) {
         System.out.println(ex.getMessage());
         JOptionPane.showMessageDialog(null, "數(shù)據(jù)庫(kù)沒(méi)有鏈接成功,數(shù)據(jù)沒(méi)有修改成功!");
       } //end catch
     }
  }



}//end class

class Student_Information_jButton4_actionAdapter
    implements ActionListener {
  private Student_Information adaptee;
  Student_Information_jButton4_actionAdapter(Student_Information adaptee) {
    this.adaptee = adaptee;
  }

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

class Student_Information_jButton3_actionAdapter
    implements ActionListener {
  private Student_Information adaptee;
  Student_Information_jButton3_actionAdapter(Student_Information adaptee) {
    this.adaptee = adaptee;
  }

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

class Student_Information_jButton5_actionAdapter
    implements ActionListener {
  private Student_Information adaptee;
  Student_Information_jButton5_actionAdapter(Student_Information adaptee) {
    this.adaptee = adaptee;
  }

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

class Student_Information_jdbTextField4_actionAdapter
    implements ActionListener {
  private Student_Information adaptee;
  Student_Information_jdbTextField4_actionAdapter(Student_Information adaptee) {
    this.adaptee = adaptee;
  }

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

class Student_Information_jButton2_actionAdapter
    implements ActionListener {
  private Student_Information adaptee;
  Student_Information_jButton2_actionAdapter(Student_Information adaptee) {
    this.adaptee = adaptee;
  }

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

class Student_Information_jButton1_actionAdapter
    implements ActionListener {
  private Student_Information adaptee;
  Student_Information_jButton1_actionAdapter(Student_Information adaptee) {
    this.adaptee = adaptee;
  }

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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av欧美精品.com| 欧美精品一区二区三区很污很色的 | 久久精品国产99久久6| 国产高清精品网站| 777xxx欧美| 自拍视频在线观看一区二区| 麻豆91在线看| 在线免费亚洲电影| 国产欧美日韩麻豆91| 石原莉奈一区二区三区在线观看| 成人网男人的天堂| 亚洲欧美电影院| 成人天堂资源www在线| 欧美精品一区在线观看| 另类小说色综合网站| 欧美日本国产视频| 亚洲一二三四久久| 色先锋资源久久综合| 国产精品麻豆99久久久久久| 国产在线精品视频| 欧美本精品男人aⅴ天堂| 肉肉av福利一精品导航| 欧美美女一区二区三区| 亚洲伊人伊色伊影伊综合网| 成人黄色国产精品网站大全在线免费观看 | 91年精品国产| 久久综合色之久久综合| 美女脱光内衣内裤视频久久影院| 91蜜桃传媒精品久久久一区二区| 国产精品美女久久久久aⅴ| 国产自产视频一区二区三区| 日韩美女天天操| 麻豆91小视频| 2024国产精品| 国产成人亚洲精品狼色在线| 欧美一区二区不卡视频| 日日夜夜精品免费视频| 在线不卡欧美精品一区二区三区| 亚洲国产精品自拍| 欧美体内she精视频| 国产成人鲁色资源国产91色综| 日韩欧美国产麻豆| 久久精品噜噜噜成人av农村| 精品福利在线导航| 国产69精品久久久久毛片| 中文字幕巨乱亚洲| 色偷偷一区二区三区| 亚洲国产美女搞黄色| 日韩三级电影网址| 国产精品一区二区在线看| 久久久www成人免费毛片麻豆| 国产99精品在线观看| 亚洲精品乱码久久久久| 欧美日韩国产免费一区二区| 美女视频黄 久久| 中文字幕精品在线不卡| 日本韩国视频一区二区| 日本va欧美va精品发布| 国产网站一区二区三区| 91首页免费视频| 天堂午夜影视日韩欧美一区二区| 精品国产一区二区国模嫣然| 成人app在线| 午夜a成v人精品| 国产午夜亚洲精品羞羞网站| 色综合久久天天| 久久精品免费观看| 一区二区三区四区不卡视频| 精品国产免费一区二区三区香蕉| 99久久精品情趣| 久久精品国产一区二区| 亚洲欧美日韩一区二区| 日韩欧美一区二区免费| 91色在线porny| 国产一区二区三区国产| 亚洲国产精品综合小说图片区| 久久久久久久久久看片| 欧美日韩精品欧美日韩精品一| 国产精品综合久久| 午夜电影一区二区三区| 中文字幕一区二区三区在线观看| 欧美日韩一区小说| 国产一区二区三区四区五区入口| 一区二区久久久| 日本一区二区久久| 欧美福利电影网| 99久久99久久综合| 国产精品一级在线| 图片区小说区国产精品视频| 国产精品久久久久久久蜜臀| 精品欧美一区二区在线观看| 国产午夜久久久久| 欧美一区二区三区白人| 欧美亚洲一区二区在线| jiyouzz国产精品久久| 国产米奇在线777精品观看| 亚洲一区二区三区中文字幕 | 欧美成人bangbros| 欧美日韩精品欧美日韩精品| 在线视频中文字幕一区二区| 成人精品视频一区| 国内精品伊人久久久久av一坑| 天天综合色天天| 亚洲欧美成aⅴ人在线观看| 国产精品久久免费看| 久久先锋资源网| 欧美v日韩v国产v| 欧美不卡一区二区| 欧美成人乱码一区二区三区| 欧美一区二区视频在线观看2022 | 欧美一区二区三区在线电影| 欧美三级欧美一级| 91免费看`日韩一区二区| 97精品国产露脸对白| www.一区二区| 色先锋资源久久综合| 色噜噜狠狠色综合中国 | 国内精品久久久久影院色| 婷婷国产在线综合| 亚洲综合在线视频| 性做久久久久久久免费看| 亚洲主播在线观看| 亚洲激情欧美激情| 成人免费小视频| 亚洲色图都市小说| 亚洲制服丝袜在线| 日韩福利视频网| 九九精品视频在线看| 国产裸体歌舞团一区二区| 粉嫩av一区二区三区粉嫩| 99re这里都是精品| 欧美嫩在线观看| 日韩一区二区免费视频| 久久久99精品免费观看不卡| 日本一区二区成人| 亚洲欧美日韩综合aⅴ视频| 亚洲成a人片在线观看中文| 久久精品国产亚洲a| 国产成人午夜视频| 在线免费观看视频一区| 69久久夜色精品国产69蝌蚪网| 日韩免费视频一区二区| 国产精品久久久久久久浪潮网站| 一区二区成人在线| 精品在线亚洲视频| 99国产精品久久久久久久久久| 欧美日韩一区二区电影| 欧美精品一区二区三区视频 | 欧美最新大片在线看| 欧美一区三区二区| 中文在线一区二区| 国产成人啪免费观看软件| 欧美四级电影在线观看| 国产亚洲午夜高清国产拍精品 | 国产偷国产偷精品高清尤物| 亚洲欧美国产高清| 国产一区在线不卡| 欧美群妇大交群的观看方式| 国产偷国产偷精品高清尤物 | 亚洲精品国产视频| 图片区小说区区亚洲影院| 大美女一区二区三区| 欧美色手机在线观看| 久久久五月婷婷| 亚洲图片欧美视频| 国产成人综合亚洲91猫咪| 欧美性色欧美a在线播放| 国产婷婷色一区二区三区在线| 亚洲国产精品一区二区久久恐怖片| 国产一区二区三区黄视频| 欧美吞精做爰啪啪高潮| 国产精品全国免费观看高清 | 欧美剧情片在线观看| 日韩一区在线看| 国产成人鲁色资源国产91色综| 91精品蜜臀在线一区尤物| 一区二区免费在线播放| 99r精品视频| 中文字幕日韩一区二区| 国产激情精品久久久第一区二区 | 色狠狠桃花综合| 国产精品电影一区二区三区| 国内精品写真在线观看| 欧美mv日韩mv亚洲| 国产精品久久久久久久久免费相片| 精品国偷自产国产一区| 国产欧美精品日韩区二区麻豆天美| 日韩精品一二三区| 欧美女孩性生活视频| 欧美电影免费观看高清完整版在 | 日本道精品一区二区三区| 国产精品女主播在线观看| 国产福利不卡视频| 26uuu色噜噜精品一区二区| 日韩一区欧美二区| 91国偷自产一区二区三区观看| 国产综合色视频| 国产三级精品三级在线专区| 国产福利一区二区三区视频| 久久亚区不卡日本|