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

正文內(nèi)容

java應(yīng)用課程設(shè)計(jì)小型圖書管理系統(tǒng)方案(編輯修改稿)

2025-05-30 03:00 本頁面
 

【文章內(nèi)容簡介】 } public void actionPerformed(ActionEvent e) { String cmd=()。 if((確定)) { showRecord()。 ()。 } else if((取消)) ()。 }public static void main(String []arg){ QueryBook a=new QueryBook()。}}4圖書刪除:import .*。import .*。import .*。import 。import .*。import .*。class RemoveBook implements ActionListener{ 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。請輸入要?jiǎng)h除的圖書名:/font,)。 ()。 L=new JLabel(該種圖書共有+count+本)。 // table=new JTable(ar,columnName)。//ar存放表中的數(shù)據(jù),columnname表示列名 JScrollPane scrollpane = new JScrollPane(table)。 // 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)。 // 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。 } i=0。 try{ ()。 }catch(ClassNotFoundException e){(加載驅(qū)動(dòng)程序失敗!)。} 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+。 (該種圖書共有+count+本)。 ()。 ()。(ar[0][1])。 }catch(SQLException g) { (E Code+())。 (E M+())。 } } public void deleteRecord(int index) { try{ ()。 }catch(ClassNotFoundException e){(加載驅(qū)動(dòng)程序失敗!)。} 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,刪除成功!, 信息, )。 } ()。 ()。 }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,請選定要?jiǎng)h除的表格行, 輸入錯(cuò)誤, )。 else{ deleteRecord(index)。 //showRecord(remember)。 } } if((取消)) ()。 }public static void main(String []arg){ RemoveBook a=new RemoveBook()。}}
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1