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

正文內(nèi)容

51cto下載-java_項目開發(fā)實例_圖書信息管理系統(tǒng)開發(fā)文檔及源碼(編輯修改稿)

2025-06-19 02:09 本頁面
 

【文章內(nèi)容簡介】 ,String tel,String password){ int i=0。 try{ String sql=update tb_operator set name=39。+name+39。,sex=39。+sex+39。,age=+age+,identityCard=39。+identityCard+39。,workdate=39。+workdate+39。,tel=39。+tel+39。,password=39。+password+39。 where id=39。+id+39。 i=(sql)。 }catch(Exception e){ ()。 } ()。 return i。 } public static int Updatepass(String password,String name){ int i=0。 try{ String sql=update tb_operator set password=39。+password+39。 where name=39。+name+39。 i=(sql)。 }catch(Exception e){ ()。 } ()。 return i。 } } : //窗體包 Java 開發(fā)實例 源碼 —— 圖書信息管理系統(tǒng) 15 //圖書信息添加 package 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 Java 開發(fā)實例 源碼 —— 圖書信息管理系統(tǒng) 16 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 /** * 名稱:圖書添加窗體 * */ public class BookAddIFrame extends JInternalFrame { private JTextField publisher。 private JTextField price。 private JFormattedTextField pubDate。 private JTextField translator。 private JTextField writer。 private JTextField ISBN。 private JTextField bookName。 private JComboBox bookType。 private JButton buttonadd。 private JButton buttonclose。 DefaultComboBoxModel bookTypeModel。 Map map=new HashMap()。 public BookAddIFrame() { super()。 final BorderLayout borderLayout = new BorderLayout()。 getContentPane().setLayout(borderLayout)。 setIconifiable(true)。 // 設(shè)置窗體可最小化---必須 setClosable(true)。 // 設(shè)置窗體可關(guān)閉---必須 setTitle(圖書信息添加 )。 // 設(shè)置窗體標題---必須 setBounds(100, 100, 396, 260)。 // 設(shè)置窗體位置和大?。仨? final JPanel panel = new JPanel()。 (new EmptyBorder(5, 10, 5, 10))。 final GridLayout gridLayout = new GridLayout(0, 4)。 (5)。 (5)。 (gridLayout)。 getContentPane().add(panel)。 Java 開發(fā)實例 源碼 —— 圖書信息管理系統(tǒng) 17 final JLabel label_2 = new JLabel()。 (圖書編號: )。 (label_2)。 ISBN = new JTextField(請輸入 13位書號 ,13)。 (new MyDocument(13))。 //設(shè)置書號文本框最大輸入值為13 (13)。 (new ISBNkeyListener())。 (new ISBNFocusListener())。 (ISBN)。 final JLabel label = new JLabel()。 ()。 (類別: )。 (label)。 bookType = new JComboBox()。 bookTypeModel= (DefaultComboBoxModel)()。 //從數(shù)據(jù)庫中取出圖書類別 List list=()。 for(int i=0。i()。i++){ BookType booktype=(BookType)(i)。 Item item=new Item()。 ((String)())。 ((String)())。 (item)。 } (bookType)。 final JLabel label_1 = new JLabel()。 (書名: )。 (label_1)。 bookName = new JTextField()。 (bookName)。 final JLabel label_3 = new JLabel()。 ()。 (作者: )。 (label_3)。 Java 開發(fā)實例 源碼 —— 圖書信息管理系統(tǒng) 18 writer = new JTextField()。 (new MyDocument(10))。 (writer)。 final JLabel label_2_1 = new JLabel()。 (出版社: )。 (label_2_1)。 publisher=new JTextField()。 (new MyDocument(10))。 (publisher)。 final JLabel label_4 = new JLabel()。 ()。 (譯者: )。 (label_4)。 translator = new JTextField()。 (new MyDocument(10))。 (translator)。 final JLabel label_1_1 = new JLabel()。 (出版日期: )。 (label_1_1)。 SimpleDateFormat myfmt=new SimpleDateFormat(yyyyMMdd)。 pubDate= new JFormattedTextField(())。 (new ())。 (pubDate)。 final JLabel label_3_1 = new JLabel()。 ()。 (單價: )。 (label_3_1)。 price= new JTextField()。 (new MyDocument(5))。 (new NumberListener())。 (price)。 final JPanel panel_1 = new JPanel()。 (new LineBorder(, 1, false))。 getContentPane().add(panel_1, )。 final FlowLayout flowLayout = new FlowLayout()。 (2)。 Java 開發(fā)實例 源碼 —— 圖書信息管理系統(tǒng) 19 (30)。 ()。 (flowLayout)。 buttonadd= new JButton()。 (new addBookActionListener())。 (添加 )。 (buttonadd)。 buttonclose = new JButton()。 (new CloseActionListener())。 (關(guān)閉 )。 (buttonclose)。 final JLabel label_5 = new JLabel()。 ImageIcon bookAddIcon=()。 (bookAddIcon)。 (new Dimension(400, 80))。 (new LineBorder(, 1, false))。 getContentPane().add(label_5, )。 (新書定購 (LOGO圖片 ))。 setVisible(true)。 // 顯示窗體可關(guān)閉---必須在添加所有控件之后執(zhí)行該語句 } class ISBNFocusListener extends FocusAdapter { public void focusLost(FocusEvent e){ if(!(().trim()).isEmpty()){ (null, 添加書號重復! )。 return。 } } } class ISBNkeyListener extends KeyAdapter { public void keyPressed(final KeyEvent e) { if (() == 13){ ()。 } } } class CloseActionListener implements ActionListener { // 添加關(guān)閉按鈕的事件監(jiān)聽器 public void actionPerformed(final ActionEvent e) { Java 開發(fā)實例 源碼 —— 圖書信息管理系統(tǒng) 20 doDefaultCloseAction()。 } } class addBookActionListener implements ActionListener { // 添加按鈕的單擊事件監(jiān)聽器 public void actionPerformed(final ActionEvent e) { if(().length()==0){ (null, 書號文本框不可以為空)。 return。 } if(().length()!=13){ (null, 書號文本框輸入位數(shù)為 13位 )。 return。 } if(().length()==0){ (null, 圖書名稱文本框不可以為空 )。 return。 } if(().length()==0){ (null, 作者文本框不可以為空)。 return。 } if(().length()==0){ (null, 出版日期文本框不可 以為空 )。 return。 } if(().length()==0){ (null, 單價文本框不可以為空)。 return。 } String ISBNs=().trim()。 //分類 Object selectedItem = ()。 if (selectedItem == null) return。 Item item = (Item) selectedItem。 String bookTypes=()。 Java 開發(fā)實例 源碼 —— 圖書信息管理系統(tǒng) 21 String translators=().trim()。 String bookNames=().trim()。
點擊復制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1