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

正文內(nèi)容

java項目源碼(1)——學(xué)生信息管理系統(tǒng)-在線瀏覽

2025-07-17 01:58本頁面
  

【正文】 serAdd extends JDialog implements ActionListener { JTextField field1。 JPanel panel1,panel2,panel3。 JButton confBtn,cancelBtn。 Container container=getContentPane()。 setLocation(400,400)。 setVisible(true)。 setIconImage(())。 panel2=new JPanel()。 label=new JLabel(請輸入你要添加的用戶信息 )。 field1=new JTextField(,10)。 field2=new JPasswordField(,10)。 field3=new JPasswordField(,10)。 cancelBtn=new JButton(取消 )。 (label1)。 (label2)。 (label3)。 (confBtn)。 (panel1,)。 (panel3)。 (this)。//關(guān)閉該對話框 } public void actionPerformed(ActionEvent e) { if(() == confBtn)//添加 { if(AddUserSucess()) { (null, 添加成功 , 提示 , 1)。 ()。 return。 ()。 ()。 } } else if(() == cancelBtn)//取消 { closeDialog()。 return false。 //加載 JDBC 驅(qū)動 String dbURL = jdbc: DatabaseName=JavaTest 。 //默認用戶名 String userPwd = songyuejie。 char[] pwd1 = ()。 String getpwd1 = new String(pwd1)。 String sql = insert into 登陸 values(39。,39。 ) 。 else { Connection dbConn。 dbConn = (dbURL, userName, userPwd)。 //執(zhí)行語句 (sql)。 } catch (Exception e) { ()。 } } } } //刪除用戶界面 class UserDel extends JDialog implements ActionListener { public static final int WIDTH =480。 int selIndex=0。//接收要刪除行的用戶 名 public JTable table = new JTable()。 JButton confBtn。 public UserDel() { setTitle(刪除用戶 )。 setSize(WIDTH,HEIGHT)。 ImageIcon ic = new ImageIcon(src/)。 Container container=getContentPane()。 TablePanel = new JPanel()。//列表的列名 mm = new DefaultTableModel(col,0)。 (mm)。//添加滾動條 (tablescro)。 //添加到界面 (TablePanel,)。 (this)。//獲得選中要刪除的行 username = (String)(selIndex,0)。 } public void actionPerformed(ActionEvent e) { if(() == confBtn)//刪除 { if(selIndex == 0) { (null, 請選中要刪除的用戶名所在行?。? , 提示 , 1)。 } if(DelSucess()) { (null, 刪除成功 , 提示 , 1)。 } else { (null, 刪除失敗,系統(tǒng)錯誤 \n注意 :只允許單行刪除,請重新選擇進行刪除?。? , 提示 , 1)。 } } } boolean DelSucess()//判斷是否刪除成功
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1