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

正文內(nèi)容

java項目源碼(1)——學生信息管理系統(tǒng)(編輯修改稿)

2025-06-19 01:58 本頁面
 

【文章內(nèi)容簡介】 ()。 ()。 return。 } else { (null, 添加失敗 !\n用戶名已存在或兩次密碼輸入不相同 , 提示 , 1)。 ()。 ()。 ()。 return。 } } else if(() == cancelBtn)//取消 { closeDialog()。 } } boolean AddUserSucess()//判斷是否添加成功 { if(AddUserSQL()) return true。 return false。 } boolean AddUserSQL() //連接數(shù)據(jù)庫添加新用戶 { String driverName = 。 //加載 JDBC 驅(qū)動 String dbURL = jdbc: DatabaseName=JavaTest 。 //連接服務器和數(shù)據(jù)庫 sample String userName = sa。 //默認用戶名 String userPwd = songyuejie。 //密碼 String getname = ()。 char[] pwd1 = ()。 char[] pwd2 = ()。 String getpwd1 = new String(pwd1)。 String getpwd2 = new String(pwd2)。 String sql = insert into 登陸 values(39。+getname+39。,39。+getpwd1+39。 ) 。 if(!(getpwd1) == true) //判斷兩次密碼輸入是否相同 return false。 else { Connection dbConn。 try { (driverName)。 dbConn = (dbURL, userName, userPwd)。 //通過 Statement查詢記錄 Statement stmt = ()。 //執(zhí)行語句 (sql)。 return true。 } catch (Exception e) { ()。 return false。 } } } } //刪除用戶界面 class UserDel extends JDialog implements ActionListener { public static final int WIDTH =480。 public static final int HEIGHT =520。 int selIndex=0。 //選中要刪除的行號 String username。//接收要刪除行的用戶 名 public JTable table = new JTable()。 JPanel TablePanel。 JButton confBtn。 DefaultTableModel mm。 public UserDel() { setTitle(刪除用戶 )。 setLocation(350,250)。 setSize(WIDTH,HEIGHT)。 setVisible(true)。 ImageIcon ic = new ImageIcon(src/)。 setIconImage(())。 Container container=getContentPane()。 (new FlowLayout())。 TablePanel = new JPanel()。 String[] col = {用戶名 ,密碼 }。//列表的列名 mm = new DefaultTableModel(col,0)。 if(!SelectDelSQL()) (null, 讀取錯誤,請關閉該對話框重試 , 提示 , 1)。 (mm)。 JScrollPane tablescro = new JScrollPane(table)。//添加滾動條 (tablescro)。 confBtn = new JButton(刪除 )。 //添加到界面 (TablePanel,)。 (confBtn,)。 (this)。 (new MouseAdapter(){ public void mouseClicked(MouseEvent e){ selIndex = ()。//獲得選中要刪除的行
點擊復制文檔內(nèi)容
教學課件相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1