qq2013 java版(完整工程源码 包含服务端 oracle数据库)毕业设计有用
2013-08-24 08:57
585 查看
/** * 初始化组件 */ private void initComponent() { //提示面板 errorTipPane = new ErrorTipPane(); // 主面板 mainPane = new MainPane(); // 底部登录按钮面板 downPane = new DownPane(); // 登陆头像及背景 lblLoginHeadimg = new JLabel(new ImageIcon("image/Login/qqhead.png")); lblLoginHeadbkg = new JLabel(new ImageIcon( "image/Login/login_head_white.png")); // 用户名文本框 jtfAccount = new JTextField("100000"); jtfAccount.setBorder(new LineBorder(Color.GRAY, 1)); jtfAccount.setFont(new Font("Verdana", Font.PLAIN, 12)); jtfAccount.setForeground(Color.black); // 密码输入框 pwdfPassword = new JPasswordField("1234567890 "); // pwdfPassword = new JPasswordField("123"); pwdfPassword.requestFocus(true); pwdfPassword.setBorder(new LineBorder(Color.GRAY, 1)); pwdfPassword.setFont(font); pwdfPassword.setForeground(Color.black); pwdfPassword.setEchoChar('●'); // 自动登陆复选框 chkAutoLogin = JButtonUtil.getIconCheckBox( "image/Login/checkbox_normal.png", "image/Login/checkbox_hover.png", "image/Login/checkbox_press.png", "image/Login/checkbox_selected_hover.png"); // 记住密码复选框 chkRememberPwd = JButtonUtil.getIconCheckBox( "image/Login/checkbox_normal.png", "image/Login/checkbox_hover.png", "image/Login/checkbox_press.png", "image/Login/checkbox_selected_hover.png"); // 自动登陆标签 lblAutoLogin = new JLabel("自动登录"); lblAutoLogin.setFont(font); lblAutoLogin.setForeground(Color.black); // 记住密码标签 lblRememberPwd = new JLabel("记住密码"); lblRememberPwd.setFont(font); lblRememberPwd.setForeground(Color.black); this.initStatus(); this.initButton(); this.initPupupMenu(); jtfAccount.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { if(e.getClickCount()==1||e.getClickCount()==2){ mainPane.remove(errorTipPane); mainPane.add(downPane); downPane.setBounds(0, 241, 380, 51); mainPane.updateUI(); mainPane.validate(); } } }); pwdfPassword.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { if(e.getClickCount()==1||e.getClickCount()==2){ mainPane.remove(errorTipPane); mainPane.add(downPane); downPane.setBounds(0, 241, 380, 51); mainPane.updateUI(); mainPane.validate(); } } }); }
下载地址:http://yuncode.net/code/c_5204f5d84703a42
相关文章推荐
- qq2013 java版(完整工程源码 包含服务端 oracle数据库)毕业设计有用
- java+web+电子商务系统+完整项目+包含源码和数据库Java实用源码
- 利用Java针对MySql封装的jdbc框架类 JdbcUtils 完整实现(包含增删改查、JavaBean反射原理,附源码)
- 利用Java针对MySql封装的jdbc框架类 JdbcUtils 完整实现(包含增删改查、JavaBean反射原理,附源码)
- 利用Java针对MySql封装的jdbc框架类 JdbcUtils 完整实现(包含增删改查、JavaBean反射原理,附源码)
- 利用Java针对MySql封装的jdbc框架类 JdbcUtils 完整实现(包含增删改查、JavaBean反射原理,附源码)
- 利用Java针对MySql封装的jdbc框架类 JdbcUtils 完整实现(包含增删改查、JavaBean反射原理,附源码)
- 电子商务系统+java+web+完整项目+包含源码和数据库Java实用源码
- 利用Java针对MySql封装的jdbc框架类 JdbcUtils 完整实现(包含增删改查、JavaBean反射原理,附源码)
- MMORPG传奇类手游《空空西游》完整源码(客户端cocos2d-js+服务端pomelo+cocosStudio工程+搭建教程)
- Log4j日志在java项目中的使用(附工程源码)
- 把hadoop源码导入到eclpse的java工程
- 微信开发获取地理位置实例(java,非常详细,附工程源码)
- kbengine mmo源码(完整服务端源码+资源+完整客户端源码)
- `fw服务端非完整` 工程开发初期的工作
- eclipse中工程无法编译原因之一:java build path中包含多余jar包
- Java eclipse下 Ant build.xml实例详解 附完整项目源码
- 【Java源码】TCP协议之服务端与客户端文件传输
- 手把手教你从最基本的Java工程搭建SpringMVC+SpringDataJPA+Hibernate(含源码下载)
- 建立一套完整的Maven依赖工程步骤,包含WEB工程