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

正文內(nèi)容

java編寫的學生基本信息管理系統(tǒng)(已修改)

2025-02-05 20:32 本頁面
 

【正文】 學生基本信息管理系統(tǒng) 運行說明 : ,點擊 進入 按鈕 ,進行步驟 3。若輸入的姓名或密碼不正確 ,則彈出提示對話框 ,提示 姓名輸入錯誤或密碼輸入錯誤 ! (1)若選擇了 菜單選項 下的 錄入學生基本信息 ,則進入錄入界面 : 輸入要錄入的學號 ,姓名 ,選擇性別、專業(yè)、年級、出生日期 。 若學號字段為空 ,則彈出提示對話框提示 學號字段不能為空 !,若其它字段為空則彈出對話框提示 選項不能為空 !。 在正確的輸入下點擊 錄入 按鈕 ,彈出提示對話框提示 錄入成 功 .若要繼續(xù)錄入點擊 重置 按鈕 . (2)若選擇了 菜單選項 下的 修改學生基本信息 ,則進入修改界面 : 輸入要修改的學號 , 點擊 開始修改 按鈕 ,在下面的選項中會顯示待修改的學生的基本信息 ,此時依次進行修改 ,修改完成后 ,點擊 錄入修改 ,彈出對話框提示 修改成功 !。 若學號輸入為空 ,則彈出對話框提示 學號字段不能為空 !。 若輸入的學號沒有在庫中 ,則彈出對話框提示 該學號不存在 !請確認后再輸入 !。 (3)若選擇了 菜單選項 下的 查詢學生基本信息 ,則進入查詢界面 : 輸入要查詢的學號 ,點擊 查詢 按鈕 ,該學生的基本信息就會在下面的相應項中顯示出來 。 若輸入學號為空則彈出對話框提示 學號字段不能為空 !。 若輸入的學號不存在則彈出對話框提示 該學號不存在 !請確認后再輸入 !。 (4)若選擇了 菜單選項 下的 刪除學生基本信息 ,則進入刪除界面 : 輸入要刪除的學號 ,打回車 ,則該學生的相關(guān)信息就會在下面的相應項中顯示出來 ,點擊 刪除按鈕 ,彈出對話框 確定要刪除該學生的基本信息嗎 ?,點擊 是 ,則該生基本信息被刪除 ,點擊否 ,則取消操作 。 (5)若選擇了 設置選項 下的 重新設置 菜單 ,則彈出 重新設置窗口 : 輸入新的管理員姓名 ,密碼及確認密碼 ,點擊 重新注冊 ,登陸的姓名和密碼就會改變 ,點擊 取消 ,不改變 . (6)若選擇了 設置選項 下的 退出 菜單項 ,則退出操作界面 ,返回登陸界面 . 注:行動環(huán)境 ( JAVA 的一種集成開發(fā)平臺) .zip 總體設計 本系統(tǒng)共包括 8 個 java 源文件和一個 SQL Server 數(shù)據(jù)庫。 1. 類之間的關(guān)系如圖 1 所示。 2. Java 源文件及其功能如表 1 所示 二、 詳細設計 1. 主類 (1) 成員變量(表 2) 表 2 成員變量 表 1 源文件功能簡介 序號 文件名 主要功能 備注 1 學生信息管理系統(tǒng)的訪問權(quán)限 含 main 方法并且權(quán)限唯一 2 菜單選項 3 錄入學生基本信息 4 修改學生基本信息 5 查詢學生基本信息 6 刪除學生基本信息 7 登陸界面布局 8 負責與數(shù)據(jù)庫進行連接 jdbcenroll 成員變量描述 變量類型 名稱 Txtname,txtpwd TextField 管理員姓名 ,管理員密碼 btnin JButton 登陸 (2) 方法 (表 3) 表 3 方法 方法名 功能 備注 main 啟動學生信息管理系統(tǒng) 主函數(shù) StudentManagers 設置登陸訪問權(quán)限 構(gòu)造方法 actionPerformed 處理 ActionEvent 事件 接口方法 (3) 源代碼 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 public class StudentManagers { static final JFrame mainf=new JFrame()。 JLabel wele=new JLabel(歡迎訪問學生信息管理系統(tǒng)! )。 JLabel labname=new JLabel(請輸入管理員姓名: )。 public JTextField txtname=new JTextField()。 JLabel labpwd=new JLabel(請 輸 入 密 碼 : )。 public JPasswordField txtpwd=new JPasswordField()。 JButton btnin=new JButton(進 入 )。 JPanel p。 public StudentManagers() { p=new JPanel()。 ()。 (400,400)。 ()。 ()。 ()。 (())。 (new GridBagLayout())。 (p, , , 0,0, 0, 0, 1,1,labname)。 (p, ,1,0, 1, 0,1,1,txtname)。 (p,0,0,0, 1,1,1,labpwd)。 (p,1,0, 1, 1, 1,1,txtpwd)。 (p, ,1, 0, 3, 1, 1, 1, btnin)。 ().add(p,)。 ()。 (new ActionListener(){ public void actionPerformed(ActionEvent e) { String a1=()。 String a2=()。 ()。 ()。 boolean tof=false。 jdbcenroll checks=new jdbcenroll()。 tof=(a1,a2)。 if(tof==false) { (null,姓名輸入錯誤或密碼輸入錯誤 !,警告 ,)。 } else if(tof==true) { new Landat()。 (false)。 } } })。 JPanel ap=new JPanel()。 (new BorderLayout())。 (wele,)。 ().add(ap,)。 (400,400)。 ()。 ()。 } public static void main(String[] args) { JPanel mainp=new JPanel()。 StudentManagers student=new StudentManagers()。 } } 2. 類 (1).成員變量 (表 4) 表 4 成員變量 成員變量描述 變量類型 名稱 菜單條 JMenuBar mainmenubar 菜單 JMenu titlebar,messagebar 菜單項 JMenuItem inputs,modify,inquest,delete,reset,otherset 標簽 JLabel label 布局管理器 Box box1,box2,box3,box4,boxH 文本框 JTextField txtname,txtpwd,txtrepwd 按鈕 JButton ok,cancel (2)方法 (表 5) 表 5 方法 方法名 功能 備注 Landat 選擇菜單選項并執(zhí)行 構(gòu)造方法 actionPerformed 處理 ActionEvent 事件 接口方法 reenroll 重新設置管理員姓名和密碼 自定義方法 (4) 實現(xiàn)代碼 import .*。 import .*。 import .*。 import .*。 import 。 public class Landat extends JFrame implements ActionListener{ private static final int Sytle = 0。 JFrame f。 JPanel p。//登陸 JPanel p2。//錄入 JPanel p3。//修改 JPanel p4。//查詢 JPanel p5。//刪除 JPanel newp。 /*final int i=0。//控制菜單項的打開次數(shù)( 錄入學生基本信息) final int i1=0。//控制(修改學生基本信息)項 final int i2=0。//控制(查詢學生基本信息)項 final int i3=0。//控制 (刪除學生基本信息 )項 */ public Landat() { (false)。 f=new JFrame(學生學籍管理系統(tǒng) )。 p=new JPanel()。 p2=new JPanel()。 p3=new JPanel()。 p4=new JPanel()。 p5=new JPanel()。 newp=new JPanel()。 Box box1=()。 JLabel label=new JLabel( 歡迎進入學生基本信息管理系統(tǒng) )。 ()。 int style=。 Font fo=new Font(宋體 ,style,25)。 (fo)。 (label,)。 (new BorderLayout())。 (box1,)。 Container contentPane=()。 (p,)。 JMenuBar mainmenubar=new JMenuBar()。 JMenu titlebar=new JMenu(菜單選項 )。 JMenuItem inputs=new JMenuItem(錄入學生基本信息 )。 (this)。 JMenuItem modify=new JMenuItem(修改學生基本信息 )。 (this)。 JMenuItem inquest=new JMenuItem(查詢學生基本信息 )。 (this)。 JMenuItem delete=new JMenuItem(刪除學生基本信息 )。 (this)。 (inputs)。 (modify)。 (inquest)。 (delete)。 JMenu messagebar=new JMenu(設置選項 )。 JMenuItem reset=new JMenuItem(重新設置 )。 (new ActionListener(){ public void actionPerformed(ActionEvent e){ reenroll reenrolls=new reenroll()。 } })。 JMenuItem otherset=new JMenuItem(退出 )。 (this)。 (reset)。 (otherset)。 (titlebar)。 (messagebar)。 ()。 (mainmenubar)。 (400,400)。 ()。 } public vo
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
公安備案圖鄂ICP備17016276號-1