freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

學生學籍管理系統(tǒng)(含java源代碼)(已修改)

2024-11-10 16:05 本頁面
 

【正文】 : ____________ 姓名: ____________ 班級:____________ 一、設計題目: 學生學籍管理 二:設計 ( 2)主窗體的設計 ( 3)添加學生信息窗體 ( 4)查詢學生信息窗體 ( 5)修改學生信息窗體 ( 6)刪除學生信息窗體 ( 7)事件響應的處理 五:具體設計 ( 1)程序結構的說明: : 。 : 。 : 。 程序: 。 : 。 : 。 : 。 : 。 (2)程序代碼及分析說明 (已提交) 。使登錄窗口位于窗口中間,并且不可改變窗口大小。 是程序的登陸窗體。輸入用戶名和密碼(用戶名和密碼在數(shù)據(jù)庫的 password 表中)點擊 “進入 系統(tǒng) ”,然后登陸界面消失;出現(xiàn)要操作的界面(屏幕左上角)。 是添加信息界面。添加基本信息后,點擊 “添加信息 ”按鈕,將信息加入 xinxi表中。 是修改信息界面。輸入要修改的學號或姓名(兩者數(shù)其一或全部輸入),并輸入所有信息,點擊 “修改信息 ”按鈕(如果數(shù)據(jù)庫中不存在此學號,則彈出對話框 “無此學生信息 ”),若有則修改。 是刪除信息界面。輸入要刪除的學生的學號,點擊 “刪除信息 ”按鈕,彈出確認刪除對話框,即可刪除該生信息。 。輸入要查詢的學生學號,點擊 “信息查詢 ”按鈕,在相應的文本區(qū)里顯示查詢的信息。 H:源代碼 //:程序的入口。初始化界面,使主界面位于屏幕中間,且用戶不能改變大小 //功能:完成程序的執(zhí)行順序 import 。 import .*。 import .*。 //import screen public class student { boolean packFrame=false。 //JFrame frame=new JFrame()。 public student() { mainframe frame=new mainframe()。 if(packFrame) { ()。 } else { ()。 } Dimension screenSize=().getScreenSize()。 Dimension frameSize=()。 if() { =。 } if() { =。 } (()/2,()/2)。 (true)。 } public static void main(String[] args) { try{ (())。 } catch(Exception e) { ()。 } new student()。 } } //數(shù)據(jù)庫連接 //package 。 import .*。 public class DatabaseConn { private static String user=。 private static String password=。 private Connection conn=null。 private Statement stmt=null。 private ResultSet rs=null。 static { try{()。//加載驅(qū)動 } catch(ClassNotFoundException e){} } //創(chuàng)建數(shù)據(jù)庫連接對象 public Connection getConnection() { try{ conn=(jdbc:odbc:stu,user,password)。 return conn。 }catch(SQLException e) { return null。 } } public Statement createStat() { try{ conn=getConnection()。 stmt=()。 return stmt。 }catch(SQLException e) {return null。} } public ResultSet getRs(String sql) { try{ conn=getConnection()。//... stmt=createStat()。 rs=(sql)。 return rs。 }catch(SQLException e) { return null。 } } public void close() { try{ if(rs!=null) ()。 if(stmt!=null) ()。 if(conn!=null) ()。 }catch(SQLException ex) { ()。 } } } // import .*。 import .*。 import .*。 import .*。 public class mainframe extends JFrame implements ActionListener { static mainframe s。 static JPanel pan=new JPanel()。 static JLabel label1 = new JLabel(用 戶 )。 static JLabel label2 = new JLabel(密 碼 )。 static JTextField textField1 = new JTextField()。 static JPasswordField password = new JPasswordField()。 static JButton button1 = new JButton(進入系統(tǒng) )。 static JRadioButton radioButton1=new JRadioButton( 管理員,true)。//“管理員 ”初始狀態(tài)被選中 static JRadioButton radioButton2=new JRadioButton(學生 )。 static JRadioButton radioButton3=new JRadioButton(教師 )。 ButtonGroup buttonGroup=new ButtonGroup()。 public mainframe() { JLabel label=new JLabel(new ImageIcon( 圖片 ))。 (400,400)。 (label)。 (null)。 (400,400)。 (學籍管理系統(tǒng) )。 (400,400)。 (null)。 (100,25,49,20)。 (155,24,120,20)。 (100,62,49,20)。 (155,61,120,20)。 (150,200,101,22)。 (105,120,80,20)。 (180,120,60,20)。 (240,120,60,20)。 (this)。 (ra
點擊復制文檔內(nèi)容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
公安備案圖鄂ICP備17016276號-1