javafan

          qq2013 java版(畢業設計源碼 包含服務端 oracle數據庫)

          Java代碼  收藏代碼
          1. /** 
          2.  * 初始化組件 
          3.  */  
          4. private void initComponent() {  
          5.     //提示面板  
          6.     errorTipPane = new ErrorTipPane();  
          7.     // 主面板  
          8.     mainPane = new MainPane();  
          9.     // 底部登錄按鈕面板  
          10.     downPane = new DownPane();  
          11.        
          12.     // 登陸頭像及背景  
          13.     lblLoginHeadimg = new JLabel(new ImageIcon("image/Login/qqhead.png"));  
          14.     lblLoginHeadbkg = new JLabel(new ImageIcon(  
          15.             "image/Login/login_head_white.png"));  
          16.     // 用戶名文本框  
          17.     jtfAccount = new JTextField("100000");  
          18.     jtfAccount.setBorder(new LineBorder(Color.GRAY, 1));  
          19.     jtfAccount.setFont(new Font("Verdana", Font.PLAIN, 12));  
          20.     jtfAccount.setForeground(Color.black);  
          21.   
          22.     // 密碼輸入框  
          23.     pwdfPassword = new JPasswordField("1234567890  ");  
          24.     pwdfPassword = new JPasswordField("123");  
          25.     pwdfPassword.requestFocus(true);  
          26.     pwdfPassword.setBorder(new LineBorder(Color.GRAY, 1));  
          27.     pwdfPassword.setFont(font);  
          28.     pwdfPassword.setForeground(Color.black);  
          29.     pwdfPassword.setEchoChar('●');  
          30.   
          31.     // 自動登陸復選框  
          32.     chkAutoLogin = JButtonUtil.getIconCheckBox(  
          33.             "image/Login/checkbox_normal.png",  
          34.             "image/Login/checkbox_hover.png",  
          35.             "image/Login/checkbox_press.png",  
          36.             "image/Login/checkbox_selected_hover.png");  
          37.     // 記住密碼復選框  
          38.     chkRememberPwd = JButtonUtil.getIconCheckBox(  
          39.             "image/Login/checkbox_normal.png",  
          40.             "image/Login/checkbox_hover.png",  
          41.             "image/Login/checkbox_press.png",  
          42.             "image/Login/checkbox_selected_hover.png");  
          43.     // 自動登陸標簽  
          44.     lblAutoLogin = new JLabel("自動登錄");  
          45.     lblAutoLogin.setFont(font);  
          46.     lblAutoLogin.setForeground(Color.black);  
          47.     // 記住密碼標簽  
          48.     lblRememberPwd = new JLabel("記住密碼");  
          49.     lblRememberPwd.setFont(font);  
          50.     lblRememberPwd.setForeground(Color.black);  
          51.   
          52.     this.initStatus();  
          53.     this.initButton();  
          54.     this.initPupupMenu();  
          55.        
          56.     jtfAccount.addMouseListener(new MouseAdapter() {  
          57.         @Override  
          58.         public void mouseClicked(MouseEvent e) {  
          59.             if(e.getClickCount()==1||e.getClickCount()==2){  
          60.                 mainPane.remove(errorTipPane);  
          61.                 mainPane.add(downPane);  
          62.                 downPane.setBounds(024138051);  
          63.                 mainPane.updateUI();  
          64.                 mainPane.validate();  
          65.             }  
          66.         }  
          67.     });  
          68.        
          69.     pwdfPassword.addMouseListener(new MouseAdapter() {  
          70.         @Override  
          71.         public void mouseClicked(MouseEvent e) {  
          72.             if(e.getClickCount()==1||e.getClickCount()==2){  
          73.                 mainPane.remove(errorTipPane);  
          74.                 mainPane.add(downPane);  
          75.                 downPane.setBounds(024138051);  
          76.                 mainPane.updateUI();  
          77.                 mainPane.validate();  
          78.             }  
          79.         }  
          80.     });  
          81. }  

           

          下載地址:http://yuncode.net/code/c_5204f5d84703a42

          posted on 2013-08-24 12:05 明天的明天 閱讀(1962) 評論(1)  編輯  收藏

          Feedback

          # re: qq2013 java版(畢業設計源碼 包含服務端 oracle數據庫) 2013-09-03 20:45 tb

          做得不錯啊  回復  更多評論   


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          My Links

          Blog Stats

          常用鏈接

          留言簿

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 台前县| 宿州市| 武功县| 临泉县| 延庆县| 高密市| 宜兰市| 朝阳县| 会同县| 从化市| 祁东县| 晴隆县| 资讯 | 巴彦淖尔市| 青岛市| 青铜峡市| 姜堰市| 厦门市| 金乡县| 方城县| 辉南县| 镇沅| 马龙县| 北宁市| 渝北区| 长汀县| 尼木县| 南京市| 安龙县| 塘沽区| 上虞市| 镇康县| 徐水县| 芜湖县| 连平县| 凭祥市| 左贡县| 八宿县| 甘孜县| 潮安县| 黄山市|