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

正文內(nèi)容

java課程設(shè)計(jì)-圖書管理系統(tǒng)課程設(shè)計(jì)(編輯修改稿)

2025-03-09 08:41 本頁面
 

【文章內(nèi)容簡介】 =(5)。 String indate=(6)。 (bname)。 (bno)。 21 (price)。 (writer)。 (publish)。 (indate)。 } else {(null,您輸入的圖書號不存在,請重新輸入 , 輸入錯誤 , )。 } ()。 }catch(SQLException g) { (E Code+())。 (E M+())。 } (false)。 (false)。 (false)。 (false)。 (false)。 (false)。 } public void actionPerformed(ActionEvent e) { String cmd=()。 if((確定 )) { showRecord()。 ()。 } 22 else if((取消 )) ()。 } public static void main(String []arg){ QueryBook a=new QueryBook()。 } } 4 圖書刪除: 程序名 import .*。 import .*。 import .*。 import 。 import .*。 import .*。 class RemoveBook implements ActionListener { 23 JFrame f。 Container cp。 JPanel jpS,jpanelWest。 JButton jbt1,jbt2,jbt3。//按鈕,查詢、取消、修改 JLabel label,L。 //標(biāo)簽:請輸入學(xué)號 JTextField tf。 //定義文本框 JTable table。//用來接收數(shù)據(jù)庫中返回的信息 Object columnName[]={圖書名 ,圖書號 ,單價(jià) ,作者 ,出版社 ,入庫時(shí)間 }。 Object ar[][] =new Object[80][6]。 String sno。 String count=xx。 RemoveBook() { f=new JFrame()。 cp=()。 // 初始化面板、按鈕、標(biāo)簽、文本框 jpS=new JPanel()。 jpanelWest=new JPanel()。 // jbt1=new JButton(查詢 )。 jbt2=new JButton(取消 )。 jbt3=new JButton(刪 除 )。 // label=new JLabel(htmlfont color=CC00FF size=39。439。請輸入要刪除的圖書名: /font,)。 ()。 L=new JLabel(該種圖書共有 +count+本 )。 // table=new JTable(ar,columnName)。//ar 存放表中的數(shù)據(jù),columnname 表示列名 JScrollPane scrollpane = new JScrollPane(table)。 // 24 tf=new JTextField(18)。 // // //布局 ,添加控件 (jbt1)。 (jbt2)。 (jbt3)。 JPanel jpanel=new JPanel()。 (label)。 (tf)。 JPanel pp4=new JPanel()。 JPanel jpE=new JPanel()。 (jpanel,North)。 JPanel jp=new JPanel()。 //(scrollpane)。 JPanel p=new JPanel()。//用來放兩個(gè)表 (new BorderLayout())。 (L,North)。 (scrollpane)。 (pp4,West)。 (p,Center)。 (jpS,South)。 (jpE,East)。 // 25 Toolkit kit=()。 Dimension screen=()。 int x=。 /*取得顯示器窗口的寬度*/ int y=。 /*取得顯示器窗口的高度*/ (400,330)。 int xcenter=(x350)/2。 int ycenter=(y330)/2。 (xcenter,ycenter)。/*顯示在窗口中央 */ (true)。 // (this)。//注冊監(jiān)聽器 (this)。 (this)。 /*(new WindowAdapter(){ public void windowClosing(WindowEvent e){ (0)。 } } )。*/ } // int i=0。 public void showRecord(String ql) { while(i=0) { ar[i][0]=。 ar[i][1]=。 ar[i][2]=。 ar[i][3]=。 ar[i][4]=。 ar[i][5]=。 i。 } 26 i=0。 try{ ()。 }catch(ClassNotFoundException e){(加載驅(qū)動程序失敗 !)。} try{ String url = jdbc:odbc:driver={Microsoft Access Driver (*.mdb)}。DBQ=。//直接使用當(dāng)前類目錄下的數(shù)據(jù)庫文件 Connection con=(url)。 Statement sql。 String s=select * from book where 圖書名 =39。+ql +39。 sql=()。 ResultSet rs=(s)。 while(()) { String bname=(1)。 String bno=(2)。 String price=(3)。 String writer=(4)。 String publish=(5)。 String indate=(6)。 ar[i][0]=bname。 ar[i][1]=bno。 ar[i][2]=price。 ar[i][3]=writer。 ar[i][4]=publish。 ar[i][5]=indate。 i++。 } count=+i+。 27 (該種圖書共有 +count+本 )。 ()。 ()。(ar[0][1])。 }catch(SQLException g) { (E Code+())。 (E M+())。 } } public void deleteRecord(int index) { try{ ()。 }catch(ClassNotFoundException e){(加載驅(qū)動程序失敗 !)。} try{ String url = jdbc:odbc:driver={Microsoft Access Driver (*.mdb)}。DBQ=。//直接使用當(dāng)前類目錄下的數(shù)據(jù)庫文件 Connection con=(url)。 Statement sql。 String ql=(String)(ar[index][1])。 String s=delete * from book where 圖書號 =39。+ql +39。 sql=()。 int del=(s)。 if(del==1) {(null, 刪 除 成功! , 28 信息 , )。 } ()。 ()。 }catch(SQLException g) { (E Code+())。 (E M+())。 } } public void actionPerformed(ActionEvent e) { String remember=。 String ql=。 String cmd=()。 if((查詢 )) { ql=().trim()。 remember=ql。 showRecord(ql)。 } if((刪除 )) { int index=()。 if( index==1) (null,請選定要刪除的表格行 , 輸入 錯誤 , )。 else{ deleteRecord(index)。 29 //showRecord(remember)。 } } if((取消 )) ()。 } public static void main(String []arg){ Re
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1