没有合适的资源?快使用搜索试试~ 我知道了~
天翼3G上网登陆器(天翼3G上网每次都要输入账号和密码,我就做了个能记住账号的登陆器,方便大家)
3星 · 超过75%的资源 需积分: 10 42 下载量 93 浏览量
2010-09-27
15:41:16
上传
评论
收藏 8KB TXT 举报
温馨提示
试读
10页
这是我自己做的一个天翼3G上网登陆器,天翼3G上网每次都要在网页上输入账号密码,我就做了个能记住账号和密码的登陆器,方便大家。内面的我的java源代码,给大家分享一下。
资源推荐
资源详情
资源评论
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.TimerTask;
import javax.swing.*;
public class _OnLine extends JFrame implements ActionListener, ItemListener{
private String id;
private String pwd;
public Process pUp;
JPanel p;
JButton fuwu,denglu,xiaxian;
TextField tid, tpwd;
Checkbox cid,cpwd;
JLabel lid,lpwd,jim;
ImageIcon iim;
int n;
public _OnLine(){ //初始化界面
super("天翼3G上网登陆器");
fuwu=new JButton("自助服务");
denglu=new JButton("登陆");
xiaxian=new JButton("下线");
tid=new TextField(20);
tpwd=new TextField(20);
cid=new Checkbox("记住账号");
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.TimerTask;
import javax.swing.*;
public class _OnLine extends JFrame implements ActionListener, ItemListener{
private String id;
private String pwd;
public Process pUp;
JPanel p;
JButton fuwu,denglu,xiaxian;
TextField tid, tpwd;
Checkbox cid,cpwd;
JLabel lid,lpwd,jim;
ImageIcon iim;
int n;
public _OnLine(){ //初始化界面
super("天翼3G上网登陆器");
fuwu=new JButton("自助服务");
denglu=new JButton("登陆");
xiaxian=new JButton("下线");
tid=new TextField(20);
tpwd=new TextField(20);
cid=new Checkbox("记住账号");
cpwd=new Checkbox("记住密码");
lid=new JLabel("账号:");
lpwd=new JLabel("密码:");
iim=new ImageIcon("D:\\QQ图片\\tianyi\\1.jpg");
iim.getImage();
jim=new JLabel(iim);
p=new JPanel();
p.setLayout(null);
this.setVisible(true);
//p.setBackground(Color.pink);
this.setBounds(500, 300, 350, 240);
xiaxian.setBounds(180, 177, 60, 25);
denglu.setBounds(260, 177, 60, 25);
fuwu.setBounds(20, 177, 100, 25);
lid.setBounds(40, 85, 60, 25);
lpwd.setBounds(40, 115, 60, 25);
tid.setBounds(75, 85, 200, 25);
tpwd.setBounds(75, 115, 200, 25);
cid.setBounds(80, 145, 80, 25);
cpwd.setBounds(180, 145, 80, 25);
jim.setBounds(-20, 1, 370,80);
p.add(jim);
p.add(cid);
p.add(cpwd);
p.add(tpwd);
p.add(tid);
p.add(lpwd);
p.add(lid);
p.add(fuwu);
p.add(denglu);
lid=new JLabel("账号:");
lpwd=new JLabel("密码:");
iim=new ImageIcon("D:\\QQ图片\\tianyi\\1.jpg");
iim.getImage();
jim=new JLabel(iim);
p=new JPanel();
p.setLayout(null);
this.setVisible(true);
//p.setBackground(Color.pink);
this.setBounds(500, 300, 350, 240);
xiaxian.setBounds(180, 177, 60, 25);
denglu.setBounds(260, 177, 60, 25);
fuwu.setBounds(20, 177, 100, 25);
lid.setBounds(40, 85, 60, 25);
lpwd.setBounds(40, 115, 60, 25);
tid.setBounds(75, 85, 200, 25);
tpwd.setBounds(75, 115, 200, 25);
cid.setBounds(80, 145, 80, 25);
cpwd.setBounds(180, 145, 80, 25);
jim.setBounds(-20, 1, 370,80);
p.add(jim);
p.add(cid);
p.add(cpwd);
p.add(tpwd);
p.add(tid);
p.add(lpwd);
p.add(lid);
p.add(fuwu);
p.add(denglu);
剩余9页未读,继续阅读
资源评论
- xhbck12014-06-17没看懂源码
binsonX
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功