超市會員管理系統(tǒng)_第1頁
超市會員管理系統(tǒng)_第2頁
超市會員管理系統(tǒng)_第3頁
超市會員管理系統(tǒng)_第4頁
超市會員管理系統(tǒng)_第5頁
已閱讀5頁,還剩71頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

本會員超市會員管理系統(tǒng)實(shí)際的業(yè)務(wù)流程為背景而設(shè)計(jì)的,后臺數(shù)據(jù)庫的設(shè)計(jì)用Mysql5.0,前臺用java來開發(fā)。本超市會員信息管理系統(tǒng)以超市會員信息的管理為核心,兼有各種統(tǒng)計(jì)、查詢、添加、修改和刪除等功能,如對貨物流量和消費(fèi)人群的查詢,對會員信息的查詢等。本系統(tǒng)利用視圖、觸發(fā)器,存儲過程可以對數(shù)據(jù)庫中的內(nèi)容實(shí)現(xiàn)各種級聯(lián)修改與信息的實(shí)時(shí)更新,可以化繁為簡,提高效率,避免大量的重復(fù)性的工作。息模塊、購物信息模塊和商品信息模塊組成。整個(gè)系統(tǒng)能獨(dú)立運(yùn)現(xiàn)現(xiàn)實(shí)中的功能。 0 概念設(shè)計(jì) 12 數(shù)據(jù)庫大作業(yè)—超市會員管理系統(tǒng)一.設(shè)計(jì)目的現(xiàn)代化的超市組織龐大、服務(wù)項(xiàng)目多、信息量大,要想提高勞動生產(chǎn)、降低成本、提高服務(wù)質(zhì)量和管理水平,進(jìn)而促進(jìn)經(jīng)濟(jì)效益,必須借助計(jì)算機(jī)來進(jìn)行現(xiàn)代化的信息管理。超市會員管理系統(tǒng)正是為此而設(shè)計(jì)的。優(yōu)秀的超市會員管理系統(tǒng)操作方便,靈二.問題描述購物交易記錄,商品統(tǒng)計(jì)功能,實(shí)現(xiàn)超市會員管理的基本功超市會員管理系統(tǒng)提高了勞動生產(chǎn)、降低成本、提高服務(wù)質(zhì)量和管理水平,進(jìn)而促進(jìn)經(jīng)濟(jì)效益。該超市會員管理系統(tǒng)是對超市會員信息,會員優(yōu)惠信息,超市購物交易記錄信息,商品統(tǒng)計(jì)4.商品管理:對貨物流量、消費(fèi)人群及商品實(shí)時(shí)庫存量等信5.優(yōu)惠管理:對會員的積分,享受優(yōu)惠的等級信息管理。6.密碼管理:對管理員密碼進(jìn)行修改。三.需求分析3.1設(shè)計(jì)思想超市會員管理系統(tǒng)是超市管理重要的一個(gè)環(huán)節(jié),會員管理軟件有助于減輕管理人員的負(fù)擔(dān),提高勞動生產(chǎn)、降低成本、提高服務(wù)質(zhì)量和管理水平,進(jìn)而促進(jìn)經(jīng)濟(jì)效益。該超市會員管理系統(tǒng)是對超市會員信息,會員優(yōu)惠信息,超市購物交易記錄信息,商品統(tǒng)計(jì)信息進(jìn)行管理和維護(hù),實(shí)現(xiàn)超市會員管理的基本功能。本系統(tǒng)要求運(yùn)行穩(wěn)定,圖形界面符合用戶的日常使用習(xí)慣,數(shù)據(jù)處3.2可行性分析可行性分析也稱為可行性研究,是在系統(tǒng)調(diào)查的基礎(chǔ)上,針對新系統(tǒng)的開發(fā)是否具備必要性和可能性,對新系統(tǒng)的開發(fā)從技新系統(tǒng)的開發(fā)成功??尚行匝芯康哪康木褪怯米钚〉拇鷥r(jià)在盡可能短的時(shí)間內(nèi)確定問題是否能夠解決。該系統(tǒng)的可行性分析包括A.技術(shù)可行性:系統(tǒng)要求在windows7以上環(huán)境運(yùn)行,后臺庫,這些在目前都是容易實(shí)現(xiàn)的。程序?qū)⒉糠中枰?jīng)常調(diào)用的數(shù)據(jù)存入內(nèi)存,可提高程序運(yùn)行速度。B.經(jīng)濟(jì)可行性:在經(jīng)濟(jì)上,用此系統(tǒng)加強(qiáng)了超市會員的管理效率,可節(jié)省人力資源的開支。開發(fā)了此系統(tǒng),可極大提高超市工作人員的效率。提高決策的管理能力等等,方便數(shù)據(jù)的儲存和修改,及以后隨時(shí)查詢會員信息,購物和商品信息是一個(gè)比較人性化的管理系統(tǒng)。由以上分析得出,本系統(tǒng)可進(jìn)行開發(fā)。3.3功能需求3.3.1基本功能需求、消費(fèi)人群及商品實(shí)時(shí)庫存量等信。3.3.2用戶界面需求界面對于用戶來說至關(guān)重要,既是用戶對軟件評價(jià)的根據(jù),也是用戶最終使用的。所以界面設(shè)計(jì)的怎么樣,對于整個(gè)系統(tǒng)的成功與否有著密切聯(lián)系。當(dāng)然,也許界面設(shè)計(jì)的好不會讓其性能更好,但是設(shè)計(jì)的不好只會讓它更差。界面設(shè)計(jì)原則必須是,操作步驟少,隨時(shí)提示用戶系統(tǒng)正在進(jìn)行哪些操作,減少用戶記憶3.4性能需求3.5.1系統(tǒng)業(yè)務(wù)流圖商商品信息管理會員優(yōu)惠政策管理員信息管理輸出報(bào)表查詢政策信息管理會員信息超市會員管理系統(tǒng)信息反饋信息反饋信息反饋查詢修改積分消費(fèi)記錄管理會員基本信息管理查詢修改信息3.5.2系統(tǒng)數(shù)據(jù)流圖消消費(fèi)記錄信息管理員管理系統(tǒng)超市會員管理系統(tǒng)入庫出庫會員信息品信息入庫入庫會員優(yōu)惠信息會員名稱等會員卡號信息管理會員積分會員地址會員級別會員級別會員級別會員優(yōu)惠管理級別名稱級別優(yōu)惠理消費(fèi)金額條形碼商商品名稱理?xiàng)l形碼管理員信息管理管理員姓名管理員密碼四.概要設(shè)計(jì)4.1功能描述面4.2系統(tǒng)模塊關(guān)關(guān)閉數(shù)據(jù)庫連接數(shù)據(jù)庫商品信息優(yōu)惠政策信息消費(fèi)記錄信息會員信息退出系統(tǒng)密碼修改管理員登錄超市會員管理系統(tǒng)數(shù)據(jù)處理封裝管理員登錄信息管理五.?dāng)?shù)據(jù)庫設(shè)計(jì)5.1數(shù)據(jù)庫簡介數(shù)據(jù)庫(Database)是按照數(shù)據(jù)結(jié)構(gòu)來組織、存儲和管理數(shù)據(jù)的倉庫,它產(chǎn)生于距今五十年前,隨著信息技術(shù)和市場的發(fā)展,特別是二十世紀(jì)九十年代以后,數(shù)據(jù)管理不再僅僅是存儲和管理數(shù)據(jù),而轉(zhuǎn)變成用戶所需要的各種數(shù)據(jù)管理的方式。數(shù)據(jù)庫有很多種類型,從最簡單的存儲有各種數(shù)據(jù)的表格到能夠進(jìn)行海量數(shù)據(jù)存儲的大型數(shù)據(jù)庫系統(tǒng)都在各個(gè)方面得到了廣泛的應(yīng)用。根據(jù)系統(tǒng)開發(fā)的需要,以及考慮到數(shù)據(jù)庫存儲量的大小及數(shù)據(jù)量的多少,我選擇了MYSQL數(shù)據(jù)庫。因?yàn)殚_發(fā)的時(shí)間比較短加上所需要做的事情比較多,只能對數(shù)據(jù)庫進(jìn)行增、刪、改、查等5.2概念設(shè)計(jì)會員密碼會員會員卡號地址聯(lián)系方式地址級別名稱級別優(yōu)惠會級別優(yōu)惠別最小值最最小值消費(fèi)金額消費(fèi)記錄消費(fèi)時(shí)間商品條形碼購買數(shù)量條形碼條形碼單價(jià)種類商品信息數(shù)量商品名稱理員名錄密碼理員ID管理員信息表PP擁有1mn1查詢消費(fèi)記錄商品信息員5.3邏輯結(jié)構(gòu)設(shè)計(jì)會員(會員ID,姓名,性別,年齡,聯(lián)系方式,地址,會員級別,卡號)主鍵會員ID,外鍵會員級別。ID金額,條形碼,購買數(shù)量,會優(yōu)惠級別(會員級別,級別名稱,最小值,最大值,級別優(yōu)惠)主商品信息(條形碼,單價(jià),商品名稱,數(shù)量,種類)主鍵條形碼。管理員信息(管理員ID,管理員姓名,管理員密碼)主鍵管理員5.4物理結(jié)構(gòu)設(shè)計(jì)字段類型是否為空字段說明IDNumber(5)否mNamevarchar2(10)否會員姓名Varchar2(6)是Malefeenumber(2)是varchar2(20)是聯(lián)系方式varchar2(30)是MemgradeVarchar2(10)是會員級別cardNonumber(10)是卡號字段名稱字段類型是否為空約束字段說明MemgradeNumber(2)否主鍵會員級別grageNamevarchar2(10)否級別名稱lowLimitNumber(14,2)是金額下限upLimitNumber(14,2)是金額上限YouhuiNumber(3,2)是會員打折優(yōu)惠字段名稱字段類型是否為空約束字段說明expIDNumber否主鍵消費(fèi)IDexpPriceNumber(14,2)是消費(fèi)金額expTimeDATE是消費(fèi)時(shí)間DNumber是是是字段名稱字段類型是否為空約束字段說明barCodeVarchar2(20)否主鍵條形碼unitPriceNumber(10,4)是商品單價(jià)goodNamevarchar2(20)是商品名稱goodNumNumber(6)是商品數(shù)量goodSortvarchar2(10)是商品種類字段名稱字段類型是否為空約束字段說明LoginIdNumber(2)否主鍵管理員IDLoginNamevarchar2(10)否管理員姓名LoginPassNumber(14,2)否管理員密碼六.詳細(xì)設(shè)計(jì)6.1基本信息模塊6.1.1會員信息(1)模塊功能此模塊用于管理超市會員的信息,包括會員信息的管理與維(2)界面設(shè)計(jì)(3)關(guān)鍵代碼blicclassMemRegisterextendsJFramepublicMemRegister(){try{}catch(Exceptionexception){nprintStackTrace}}privatevoidjbInit()throwsException{ntPanesetLayoutnullthissetBoundsxy);jLabel1.setBounds(newRectangle(50,46,60,15));jLabelsetText"(YY-MM-DD)");jLabel11.setBounds(newRectangle(287,298,99,15));jLabel10.setBounds(newRectangle(50,428,77,15));jLabel9.setBounds(newRectangle(51,388,68,15));jLabel8.setBounds(newRectangle(50,344,65,15));jLabel7.setBounds(newRectangle(51,297,64,15));jLabel6.setBounds(newRectangle(49,254,63,15));jLabel5.setBounds(newRectangle(50,223,66,15));jLabel4.setBounds(newRectangle(50,172,64,15));jLabel3.setBounds(newRectangle(50,124,73,21));jPasswordField2.setText("jPasswordField2");jPasswordField2.setBounds(newRectangle(128,166,153,25));jPasswordField1.setText("jPasswordField1");jPasswordField1.setBounds(newRectangle(128,117,153,25));jTextField.setText("jTextField7");jTextField7.setBounds(newRectangle(128,423,151,21));jTextField.setText("jTextField6");jTextField6.setBounds(newRectangle(129,379,148,21));jTextField.setText("jTextField5");jTextField5.setBounds(newRectangle(128,342,151,21));jTextField.setText("jTextField4");jTextField4.setBounds(newRectangle(128,293,152,24));TextjTextFieldjTextFieldsetBoundsnewRectangle));TextjTextFieldjTextFieldsetBoundsnewRectangle);TextjTextFieldjTextFieldsetBoundsnewRectangle21));stenernewMemberRegisterjButton_actionAdapter(this));ttonsetTexttractActionepublicvoidactionPerformed(ActionEvente){tionPerformede}jRadioButtonsetBoundsnewRectangle,219,51,23));onsetTextsnewRectangleLabelwRectanglesetTextjButton1.setBounds(newRectangle(102,490,81,25));uttonaddActionListenernewMemberRegister_jButton1_actionAdapter(this));this.getContentPane().add(jLabel2);this.getContentPane().add(jLabel3);this.getContentPane().add(jLabel4);this.getContentPane().add(jLabel6);this.getContentPane().add(jLabel7);this.getContentPane().add(jLabel8);this.getContentPane().add(jLabel9);ontentPaneaddjLabelntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjPasswordFieldntentPaneaddjPasswordFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldontentPaneaddjLabelntentPaneaddjLabelntentPaneaddjButtonntentPaneaddjButtonntentPaneaddjRadioButtonntentPaneaddjRadioButtonjLabel2.setBounds(newRectangle(50,84,64,15));}lnewJLabellnewJLabellnewJLabellnewJLabellnewJLabellnewJLabellnewJLabellnewJLabellnewJLabeljLabel10=newJLabel();JLabeljLabel11=newJLabel();ieldnewJTextField();ieldnewJTextField();ieldnewJTextField();ieldnewJTextField();ieldnewJTextField();ieldnewJTextField();JTextFieldjTextField7=newJTextField();}}PasswordFieldjPasswordFieldnewJPasswordFieldPasswordFieldjPasswordFieldnewJPasswordFieldJButtonjButtonnewJButtonJButtonjButtonnewJButtonButtonGroupbuttonGroupnewButtonGroup();JRadioButtonjRadioButtonnewJRadioButtonJRadioButtonjRadioButtonnewJRadioButtonButtonGroupjgroupnewButtonGroup);publicvoidjdio_actionPerformed(ActionEvente){StringgendertonisSelected{}}publicvoidjButton1_actionPerformed(ActionEvente){tringManName}publicvoidjButton2_actionPerformed(ActionEvente){FieldsetTextFieldsetTextFieldsetTextFieldsetTextFieldsetTextFieldsetTextFieldsetTextswordFieldsetTextswordFieldsetTextberRegisterjButtonactionAdapterimplementsActionListenerprivateMemRegisteradapteeMemberRegister_jButton2_actionAdapter(MemRegisteradaptee){adaptee}publicvoidactionPerformed(ActionEvente){adaptee.jButton2_actionPerformed(e);}}classMemberRegister_jButton1_actionAdapterimplementsActionListener{privateMemRegisteradaptee;MemberRegister_jButton1_actionAdapter(MemRegisteradaptee){this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){adaptee.jButton1_actionPerformed(e);}}6.1.2交易記錄信息(1)模塊功能此模塊用于管理維護(hù)超市會員的購物信息包括購買商品數(shù)量,消。(2)界面設(shè)計(jì)(3)關(guān)鍵代碼privatevoidjbInit()throwsException{DjLabel9.setBounds(newRectangle(39,383,68,15));jLabel7.setBounds(newRectangle(39,291,64,15));jLabel6.setBounds(newRectangle(39,252,61,15));abelsetTextIDjLabel8.setBounds(newRectangle(39,339,60,15));jLabel5.setBounds(newRectangle(39,217,66,15));lsetTextIDctanglepterthisngleextjButton1.setBounds(newRectangle(101,469,83,25));jgroupaddjRadioButtonjgroupaddjRadioButtonjRadioButton1.addActionListener(newAbstractAction(){epublicvoidactionPerformed(ActionEvente){//TODOAuto-generatedmethodstubRadioButtonactionPerformede}jRadioButton1.setBounds(newRectangle(113,99,41,23));jTextField8.setText("jTextField8");jTextField8.setBounds(newRectangle(112,381,168,21));jTextField7.setText("jTextField7");jTextField7.setBounds(newRectangle(111,332,168,21));jTextField6.setText("jTextField6");jTextField6.setBounds(newRectangle(112,285,167,21));jTextField5.setText("jTextField5");jTextField5.setBounds(newRectangle(113,250,165,21));jTextField4.setText("jTextField4");jTextField4.setBounds(newRectangle(112,212,167,21));jTextField3.setText("jTextField3");jTextField3.setBounds(newRectangle(112,182,167,21));jTextField2.setText("jTextField2");jTextField2.setBounds(newRectangle(109,140,170,21));jTextField1.setText("jTextField1");jTextField1.setBounds(newRectangle(109,61,169,21));this.getContentPane().add(jLabel5);this.getContentPane().add(jLabel6);this.getContentPane().add(jLabel3);this.getContentPane().add(jLabel2);this.getContentPane().add(jLabel1);this.getContentPane().add(jLabel7);this.getContentPane().add(jLabel8);ntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjLabelntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjRadioButtonntentPaneaddjRadioButtonontentPaneaddjLabelntentPaneaddjButtonntentPaneaddjButtonjLabelsetBoundsnewRectangle6,15));}newJLabelnewJLabelnewJLabelnewJLabelnewJLabelnewJLabelnewJLabelnewJLabelnewJLabelJLabeljLabel10=newJLabel();JTextFieldjTextField1=newJTextField();JTextFieldjTextField2=newJTextField();JTextFieldjTextField3=newJTextField();JTextFieldjTextField4=newJTextField();JTextFieldjTextField5=newJTextField();JTextFieldjTextField6=newJTextField();JTextFieldjTextField7=newJTextField();JTextFieldjTextField8=newJTextField();ButtonGroupbuttonGroup1=newButtonGroup();JRadioButtonjRadioButton1=newJRadioButton();JRadioButtonjRadioButton2=newJRadioButton();JButtonjButtonnewJButtonJButtonjButtonnewJButtonButtonGroupjgroupnewButtonGroup();6.1.3商品信息(1)模塊功能此模塊用于對貨物流量、消費(fèi)人群及商品實(shí)時(shí)庫存量等信息的統(tǒng)(2)界面設(shè)計(jì)(3)關(guān)鍵代碼privatevoidjbInit()throwsException{jLabel8.setBounds(newRectangle(39,339,60,15));jLabel7.setBounds(newRectangle(39,291,64,15));jLabelsetBoundsnewRectangle1,15));jLabel4.setBounds(newRectangle(39,182,64,15));ButtonaddActionListenernewStafRegister_jButton2_actionAdapter(this));this.getContentPane().add(jLabel4);jButton2.setBounds(newRectangle(224,469,83,25));jButton1.setBounds(newRectangle(101,469,83,25));jgroupaddjRadioButtonjgroupaddjRadioButtonjRadioButton1.addActionListener(newAbstractAction(){epublicvoidactionPerformed(ActionEvente){//TODOAuto-generatedmethodstubRadioButtonactionPerformede}jRadioButton1.setBounds(newRectangle(113,99,41,23));jTextField4.setText("jTextField4");jTextField4.setBounds(newRectangle(112,212,167,21));jTextField3.setText("jTextField3");jTextField3.setBounds(newRectangle(112,182,167,21));jTextField2.setText("jTextField2");jTextField2.setBounds(newRectangle(109,140,170,21));jTextField1.setText("jTextField1");jTextField1.setBounds(newRectangle(109,61,169,21));this.getContentPane().add(jLabel5);this.getContentPane().add(jLabel6);this.getContentPane().add(jLabel3);this.getContentPane().add(jLabel2);this.getContentPane().add(jLabel1);this.getContentPane().add(jLabel7);this.getContentPane().add(jLabel8);ntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjTextFieldntentPaneaddjRadioButtonntentPaneaddjRadioButtonontentPaneaddjLabelntentPaneaddjButtonntentPaneaddjButton}JLabeljLabel1=newJLabel();JLabeljLabel2=newJLabel();JLabeljLabel3=newJLabel();JLabeljLabel4=newJLabel();JLabeljLabel5=newJLabel();JTextFieldjTextField1=newJTextField();JTextFieldjTextField2=newJTextField();JTextFieldjTextField3=newJTextField();JTextFieldjTextField4=newJTextField();ButtonGroupbuttonGroup1=newButtonGroup();JRadioButtonjRadioButton1=newJRadioButton();JRadioButtonjRadioButton2=newJRadioButton();JButtonjButton1=newJButton();JButtonjButton2=newJButton();ButtonGroupjgroup1=newButtonGroup();6.1.4會員優(yōu)惠政策信息(1)模塊功能此模塊用于對貨物流量、消費(fèi)人群及商品實(shí)時(shí)庫存量等信息的統(tǒng)(2)界面設(shè)計(jì)(3)關(guān)鍵代碼privatevoidjbInitthrowsException{jLabel9.setBounds(newRectangle(39,383,68,15));jLabel8.setBounds(newRectangle(39,339,60,15));jLabel7.setBounds(newRectangle(39,291,64,15));jLabel6.setBounds(newRectangle(39,252,61,15));ButtonaddActionListenernewStafRegister_jButton2_actionAdapter(this));this.getContentPane().add(jLabel4);jButton2.setBounds(newRectangle(224,469,83,25));jButton1.setBounds(newRectangle(101,469,83,25));jgroupaddjRadioButtonjgroupaddjRadioButtonjRadioButton1.addActionListener(newAbstractAction(){epublicvoidactionPerformed(ActionEvente){//TODOAuto-generatedmethodstubRadioButtonactionPerformede}jTextField4.setText("jTextField4");jTextField4.setBounds(newRectangle(112,212,167,21));jTextField3.setText("jTextField3");jTextField3.setBounds(newRectangle(112,182,167,21));jTextField2.setText("jTextField2");jTextField2.setBounds(newRectangle(109,140,170,21));jTextField1.setText("jTextField1");jTextField1.setBounds(newRectangle(109,61,169,21));this.getContentPane().add(jLabel5);this.getContentPane().add(jLabel6);this.getContentPane().add(jLabel3);this.getContentPane().add(jLabel2);this.getContentPane().add(jLabel1);this.getContentPane().add(jLabel7);this.getContentPane().add(jLabel8);this.getContentPane().add(jTextField1);this.getContentPane().add(jTextField2);this.getContentPane().add(jTextField4);this.getContentPane().add(jLabel9);this.getContentPane().add(jTextField3);this.getContentPane().add(jRadioButton1);this.getContentPane().add(jRadioButton2);this.getContentPane().add(jLabel10);this.getContentPane().add(jButton1);this.getContentPane().add(jButton2);}JLabeljLabel1=newJLabel();JLabeljLabel2=newJLabel();JLabeljLabel3=newJLabel();elelelelelelJLabeljLabel10=newJLabel();JTextFieldjTextFieldnewJTextFieldJTextFieldjTextFieldnewJTextFieldJTextFieldjTextFieldnewJTextFieldJTextFieldjTextFieldnewJTextFieldJTextFieldjTextFieldnewJTextFieldJTextFieldjTextFieldnewJTextFieldJTextFieldjTextFieldnewJTextFieldJTextFieldjTextFieldnewJTextFieldButtonGroupbuttonGroupnewButtonGroup();JRadioButtonjRadioButtonnewJRadioButtonJRadioButtonjRadioButtonnewJRadioButtonJButtonjButtonnewJButtonJButtonjButtonnewJButtonButtonGroupjgroupnewButtonGroup();6.2.1管理員登陸(1)模塊功能(2)界面設(shè)計(jì)(3)關(guān)鍵代碼oidjbInitthrowsExceptionsetTitle理系統(tǒng)");thissetResizablefalse;//ImageIconii1=newImageIcon(this.getClass().getResource("/login.jpg"));//backLabel.setVerticalAlignment(SwingConstants.TOP);glegleRectanglenewRectanglenglensetTextActionListenernewFramejButtonactionAdapterthisjButtonsetBoundsnewRectangle25));extjButton2.addActionListener(newFrame2_jButton2_actionAdapter(this));contentPane.add(txtloginId);contentPane.add(txtloginPassword);contentPaneadd(jButton2);contentPaneadd(jButton1);contentPane.add(jLabel1,null);contentPaneaddjLabel2);txtloginPassword.addKeyListener(newKeyAdapter(){epublicvoidkeyReleased(KeyEvente){//TODOAuto-generatedmethodstub{jButton1.doClick();}}}6.2.1修改密碼(1)模塊功能(2)界面設(shè)計(jì)(3)關(guān)鍵代碼privatevoidjbInitthrowsException{rjLabel5.setBounds(newRectangle(20,199,117,30));jLabel1.setBounds(newRectangle(24,33,81,29));jLabel3.setBounds(newRectangle(24,67,75,28));jLabel4.setBounds(newRectangle(25,100,84,31));jPasswordField1.setText("");jPasswordField1.setBounds(newRectangle(122,33,172,25));jPasswordField2.setText("");jPasswordField2.setBounds(newRectangle(122,70,172,25));jPasswordField3.setText("");jPasswordField3.setBounds(newRectangle(123,105,171,25));jButton1.setBounds(newRectangle(264,148,100,25));}stenernewUpdatePwdjButtonactionAdapterthis));nulljLabelsetBoundsnewRectangle2));jLabel6.setBounds(newRectangle(23,50,80,22));jPaneladdjPasswordField;jPaneladdjPasswordField;jPaneladdjPasswordField;neladdjLabelneladdjLabelneladdjLabelneladdjButtonthis.getContentPane().add(jPanel1);neladdjLabelthis.getContentPane().add(jLabel6);this.getContentPane().add(jLabel5);this.getContentPane().add(jPanel2);jLabelsetTextXXXjPanelsetBorder(titledBorder1);jPanel1.setBounds(newRectangle(21,93,386,78));this.addWindowListener(newWindowAdapter(){epublicvoidwindowOpened(WindowEvente){//TODOAuto-generatedmethodstubtry{update_windowOpened(e);}catch(SQLExceptione1){//TODOAuto-generatedcatchblocktStackTrace}}publicvoidjButton

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論