91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 898KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-16
  • 語言: Java
  • 標簽:

資源簡介

這個是JAVA連接數據庫的實驗,利用的是JDBC技術。首先將數據導入sql server2000中,然后運行程序里的denglu就可以了,內含實驗報告,JAVA程序及SQL數據。

資源截圖

代碼片段和文件信息

import?java.io.*;
import?java.net.*;
import?java.awt.event.*;
import?javax.swing.*;
public?class?addusers?extends?Jframe{
private?JTextField?SnoCnoScore;
private?JLabel?jSnojCnojScore;
private?JButton?button1button2;
String?message=““;
public?addusers(){
this.setLayout(null);
jSno=new?JLabel(“學號“);
Sno=new?JTextField();
jCno=new?JLabel(“課程編號“);
Cno=new?JTextField();
jScore=new?JLabel(“成績“);
Score=new?JTextField();
button1=new?JButton(“添加“);
button2=new?JButton(“取消“);
jSno.setBounds(30206030);//設置標簽大小
jCno.setBounds(30706026);
jScore.setBounds(301206026);
Sno.setBounds(1102012026);
Cno.setBounds(1107012026);
Score.setBounds(11012012026);
button1.setBounds(302206026);
button2.setBounds(1402206026);
this.add(jSno);
this.add(Sno);
this.add(jCno);
this.add(Cno);
this.add(jScore);
this.add(Score);
this.add(button1);
this.add(button2);
this.setSize(250300);
button1.addActionListener(new?ActionListener(){?
???? ?public?void?actionPerformed(ActionEvent?e){
???? ?try{tianjia?o=new?tianjia();
???? ?
???? ? if(Sno.getText().toString().equals(““))
???? ? JOptionPane.showMessageDialog(null“學號不能為空““添加“JOptionPane.WARNING_MESSAGE);
???? ? else
???? ? if(Cno.getText().toString().equals(““))
???? ? JOptionPane.showMessageDialog(null“姓名不能為空““添加“JOptionPane.WARNING_MESSAGE);
???? else
???? ? if(Score.getText().toString().equals(““))
???? ? JOptionPane.showMessageDialog(null“成績不能為空““添加“JOptionPane.WARNING_MESSAGE);
???? ? else
???? ? o.tianjia(Sno.getText().toString()Cno.getText().toString()Score.getText().toString());
???? ?}catch(Exception?e1){
???? ? e1.printStackTrace();
???? ?}JOptionPane.showMessageDialog(null“添加成功!““添加成功!“JOptionPane.INFORMATION_MESSAGE);????}
});

???? button2.addActionListener(new?ActionListener(){?
???? ?public?void?actionPerformed(ActionEvent?e)
???? ?{
???? ? Sno.setText(““);
???? ? Cno.setText(““);
???? ? Score.setText(““);
???? ?}
???? ?});

setVisible(true);
}

public?static?void?main(String[]?args){
addusers?app=new?addusers();
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????3724??2009-12-09?15:00??學生成績管理系統\程序\quanbanchaxun.java

?????文件???????1039??2009-12-08?23:25??學生成績管理系統\程序\tianjia.java

?????文件????????646??2009-12-10?11:50??學生成績管理系統\程序\tijiao.java

?????文件???????2256??2009-12-09?09:37??學生成績管理系統\程序\addusers.java

?????文件???????3662??2009-12-10?10:34??學生成績管理系統\程序\caidan1.java

?????文件??????16577??2009-10-10?19:02??學生成績管理系統\程序\3.gif

?????文件???????4437??2009-12-10?10:57??學生成績管理系統\程序\caidan.java

?????文件???????3635??2009-12-10?11:08??學生成績管理系統\程序\chengjichaxun1.java

?????文件???????3554??2009-12-10?11:25??學生成績管理系統\程序\chengjichaxun.java

?????文件???????3794??2009-12-10?11:50??學生成績管理系統\程序\chengjixiugai.java

?????文件???????5630??2009-12-10?10:25??學生成績管理系統\程序\denglu.java

?????文件???????3228??2009-12-10?10:58??學生成績管理系統\程序\grxxchaxun1.java

?????文件???????3728??2009-12-09?15:06??學生成績管理系統\程序\grxxchaxun.java

?????文件???????3396??2009-12-09?12:52??學生成績管理系統\程序\kebiaochaxun.java

?????文件???????2112??2009-12-09?00:37??學生成績管理系統\程序\kechengbiao1.java

?????文件???????1033??2009-12-13?12:25??學生成績管理系統\程序\建立視圖的SQL語句.sql

?????文件??????87082??2009-08-03?17:52??學生成績管理系統\程序\1.jpg

?????文件?????105542??2004-08-17?20:00??學生成績管理系統\程序\Winter.jpg

?????文件????1048576??2009-12-13?13:42??學生成績管理系統\數據\denglu_Data.MDF

?????文件????1048576??2009-12-13?13:42??學生成績管理系統\數據\denglu_Log.LDF

?????文件?????649811??2010-06-08?10:58??學生成績管理系統\學生成績管理系統數據庫設計論文.doc

?????目錄??????????0??2010-06-08?11:00??學生成績管理系統\程序

?????目錄??????????0??2010-06-08?11:00??學生成績管理系統\數據

?????目錄??????????0??2010-06-08?11:00??學生成績管理系統

-----------?---------??----------?-----??----

??????????????3002038????????????????????24


評論

共有 條評論

相關資源