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

正文內(nèi)容

java圖書管理系統(tǒng)代碼版-在線瀏覽

2025-03-25 20:31本頁面
  

【正文】 */ mnLog= new Menu(退出 )。 mnJy= new Menu(借閱管理 )。 /* jLabel=new JLabel(歡迎進入設(shè)備管理系統(tǒng) )。 ()。 (this)。//將一個分隔線或連字符添加到菜單的當(dāng)前位置 /* * 添加 miBinary、 miFont兩個子菜單到 mnFormat(格式)下 * */ mifyshow=new MenuItem(查看 )。 (mifyshow)。 (milyshow)。 miyshow=new MenuItem(查看 )。 (this)。 (this)。 /* * 將文件、編輯、格式、幫助添加到菜單欄 * */ (mnLog)。 (mnFy)。 setMenuBar(mb)。 } })。 (700,500)。 //將組件移到新位置 Component類方法 (true)。 //停止運行程序 } if(()==mifyshow){ 讀者信息查詢 wo= new 讀者信息查詢 (查看 )。 } if(()==mijyinsert){ 讀者借閱信息插入 wo= new 讀者借閱信息插入 (借書 )。 } if(()==milyshow){ 意見留言 wo= new 意見留言 (留言 )。 } if(()==miyshow){ 留言查看 wo= new 留言查看 (查看 )。 } }} 登入界面 系統(tǒng) : package hehe。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 public Container con = ()。 //獲取工具包 public Dimension sc = ()。 public JRadioButton rb1 = new JRadioButton(讀者 )。 public ButtonGroup group = new ButtonGroup ()。 public JLabel mi_ma = new JLabel(密碼 )。 public JPasswordField textPs = new JPasswordField()。 public JButton qu_xiao = new JButton(取消 )。 public Font font2 = new Font(宋體 ,0,12)。 //(,)。 */ /* public void setLocation(int x, int y)將組件移到新位置。 參數(shù): x 父級坐標空間中新位置左上角的 x 坐標 y 父級坐標空間中新位置左上角的 y 坐標 */ (null)。 (rb2)。 (this)。 (this)。 (,)。 (80,30)。 //大小 (font1)。//設(shè)置顏色 (80,180)。 //大小 (250,180)。 //大小 (80,90)。 ( ) 。 (140, 20)。 (140, 20)。 //(39。)。 (80,220 ) 。 (90,25) 。 (font2) 。 (rb2) 。 (mi_ma) 。 (textPs)。 (qu_xiao)。 (false)。 ()。 Connection con。 ResultSet rs。 char[]c=()。 try{ ()。} try{con=(jdbc:odbc:hehe,)。 dx=new Object[1]。+a+39。 boolean min=()。 // (this,用戶名或密碼錯誤 )。 } if(min){ dx=(2)。 // ((String) b).trim()。 } if((b)){ (null,登入成功 )。 (500, 300)。 } } catch(SQLException ee){ (ee)。 } } } if(()==()){ if(()==deng_ru) { a=()。 b= new String(c)。} catch(ClassNotFoundException ee){(+e)。 sql=()。 rs=(select * from 讀者信息表 where 用戶名 =39。)。 if(!min){ (null,用戶名或密碼錯誤 )。 } // ((String) dx).trim()。 if(!(b)){ (null,用戶名或密碼錯誤 )。 菜單 1 n=new 菜單 1()。 (true)。 } } } } public static void main(String[] args) { new 登陸界面 ()。 import .*。 import .*。 public class 管理員圖書信息查詢 extends JDialog implements ActionListener{//負責(zé)顯示記錄的類 JTable table。 Object name[]={ 圖書編號 ,書名 ,出版書號 ,編著者 ,出版社 ,出版日期 ,單價 ,庫存數(shù)量 }。 Connection con。 ResultSet rs。 S=new JButton(顯示記錄 )。 add(S,)。 setVisible(true)。 Statement sql。 try{ ()。} try{con=(jdbc:odbc:hehe,)。 rs=(select * from 圖書信息表 )。 int lastNumber=()。 int k=0。 while(()){ a[k][0]=(1)。 a[k][2]=(3)。 a[k][4]=(5)。 a[k][6]=(7)。 k++。 // (連接失敗 )。 (ee)。 getContentPane().removeAll()。 // (連接失敗 )。//滾動條 validate()。 } } 添加: package hehe。 import 。 import 。 import 。 import 。 import 。 import 。 import 。//標簽 Object ono[]={ 圖書編號 ,書名 ,出版書號 ,編著者 ,出版社 ,出版日期 ,單價 ,庫存數(shù)量 }。 JTable table。 Connection con。 ResultSet rs。 管理員圖書信息插入 (String s){ setTitle(s)。 table=new JTable(a,ono)。 setLayout(null)。//橫向 (hintLabel)。 (enterInsert)。 (10,40,600,38)。 setBounds(320,160,700,200)。 } public 管理員圖書信息插入 () { // TODO 自動生成的 構(gòu)造函數(shù)存根 } public void actionPerformed(ActionEvent e){ Connection con。 ResultSet rs。} catch(ClassNotFoundException ee){(+e)。 sql=()。+a[0][0]+39。+a[0][1]+39。+a[0][2]+39。+a[0][3]+39。+a[0][4]+39。+a[0][5]+39。+a[0][6]+39。+a[0][7]+39。+a[0][8]+39。 //boolean a=(str)。 } catch(Exception e1) { ()。 } } public static void main(String args[]) { 管理員圖書 信息插入 b=new 管理員圖書信息插入 (插入 )。 import .*。 import .*。 import .*。 JTextField inputNumber。 Object a[][]=new Object[1][8]。 JButton enterModify。 Statement sql。 String num。 hintLabel=new JLabel(圖書編號 (回車確認 ):)。 table=new JTable(a,name)。 setLayout(null)。 (hintLabel)。 (new JScrollPane(table))。 add(baseBox)。 (this)。 setBounds(20,100,900,200)。 } public void actionPerformed(ActionEvent e){ if(()==inputNumber) try{ ()。} try{con=(jdbc:odbc:hehe,)。 rs=(SELECT * FROM 圖書信息表 WHERE 圖書編號 =39。)。 if(boo==false){ (this,圖書編號不存在 ,提示 ,)。 a[0][1]=(2) 。 a[0][3]=(4) 。 a[0][5]=(6) 。 a[0][7]=(8) 。 } ()。 } if(()==enterModify){ try{ ()。} try{con=(jdbc:odbc:hehe,)。 (UPDATE 圖書信息表 SET 圖書編號 =39。,書名 =39。,出版書號 = 39。,編著者 =39。,出版社 =39
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1