public class Exe extends JFrame {
public Exe() {
this.setTitle("QQ2007");
this.setIconImage(new ImageIcon("QQ/QQLoginFrame/logo.gif").getImage());
this.setSize(324, 660);
this.setLocationRelativeTo(null);
this.setResizable(false);
this.setLayout(null);
run();
run1();
run2();
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
}
public static void main(String[] args) {
new Exe();
}
private void run() {
JLabel jLabel=new JLabel();
jLabel.setIcon(new ImageIcon("QQ/QQLoginFrame/title.jpg"));
jLabel.setBounds(0, 0, 500, 60);
this.add(jLabel);
Font font=new Font("宋体",Font.BOLD,12);
String[] str= {"手机号码","QQ号码"};
JComboBox<String> j=new JComboBox<String>(str);
j.setFont(font);
j.setBounds(20, 60, 80, 30);
String[] str1= {"",""};
JComboBox<String> j1=new JComboBox<String>(str1);
j1.setFont(font);
j1.setBounds(105, 60, 100, 30);
this.add(j);
this.add(j1);
JLabel jLabel1 = new JLabel("申请号码");
jLabel1.setBounds(220, 60, 60, 30);
JLabel jLabel2 = new JLabel("QQ密码");
jLabel2.setBounds(30, 95, 50, 30);
this.add(jLabel1);
this.add(jLabel2);
JTextField field = new JTextField();
field.setBounds(105, 95, 110, 30);
this.add(field);
JLabel jLabel3 = new JLabel("忘了密码?");
jLabel3.setBounds(225, 95, 60, 30);
this.add(jLabel3);
JCheckBox box = new JCheckBox("自动登录",true);
box.setBounds(70, 125, 80, 40);
JCheckBox box1 = new JCheckBox("隐身登录");
box1.setBounds(180, 125, 80, 40);
this.add(box);
this.add(box1);
JButton button = new JButton("<>安全检查");//按钮
button.setBounds(30, 190, 100, 30);
JButton button1 = new JButton("设置");
button1.setBounds(140, 190, 70, 30);
JButton button2 = new JButton("登录");
button2.setBounds(230, 190, 60, 30);
this.add(button);
this.add(button1);
this.add(button2);
}
private void run1() {
JLabel jLabel = new JLabel("其他选项");
jLabel.setBounds(20, 220, 60, 30);
this.add(jLabel);
JLabel jLabel1 = new JLabel("登录模式:");
jLabel1.setBounds(30, 250, 70, 30);
this.add(jLabel1);
Font font=new Font("宋体",Font.BOLD,12);
String[] str= {"普通模式","VIP模式"};
JComboBox<String> j=new JComboBox<String>(str);
j.setFont(font);
j.setBounds(105, 250, 110, 30);
this.add(j);
JButton button = new JButton("清除记录");//按钮
button.setBounds(5, 290, 90, 30);
JButton button1 = new JButton("取回密码");
button1.setBounds(100, 290, 90, 30);
JButton button2 = new JButton("申请密码保护");
button2.setBounds(195, 290, 115, 30);
this.add(button);
this.add(button1);
this.add(button2);
}
private void run2(){
JLabel jLabel = new JLabel("网络设置");
jLabel.setBounds(20, 320, 60, 30);
this.add(jLabel);
JLabel jLabel1 = new JLabel("类型:");
jLabel1.setBounds(25, 350, 60, 30);
this.add(jLabel1);
Font font=new Font("宋体",Font.BOLD,12);
String[] str= {"不使用代理","使用代理"};
JComboBox<String> j=new JComboBox<String>(str);
j.setFont(font);
j.setBounds(60, 350, 90, 30);
this.add(j);
JLabel jLabel2 = new JLabel("地址:");
jLabel2.setBounds(25, 390, 60, 30);
this.add(jLabel2);
JTextField field = new JTextField();
field.setBounds(60, 390, 100, 30);
this.add(field);
JLabel jLabel3 = new JLabel("端口:");
jLabel3.setBounds(170, 390, 60, 30);
this.add(jLabel3);
JTextField field1 = new JTextField();
field1.setBounds(205, 390, 90, 30);
this.add(field1);
JLabel jLabel4 = new JLabel("用户:");
jLabel4.setBounds(25, 430, 60, 30);
this.add(jLabel4);
JTextField field2 = new JTextField();
field2.setBounds(60, 430, 100, 30);
this.add(field2);
JLabel jLabel5 = new JLabel("密码:");
jLabel5.setBounds(170, 430, 60, 30);
this.add(jLabel5);
JTextField field3 = new JTextField();
field3.setBounds(205, 430, 90, 30);
this.add(field3);
JLabel jLabel6 = new JLabel("域(可不填):");
jLabel6.setBounds(25, 470, 95, 30);
this.add(jLabel6);
JTextField field4 = new JTextField();
field4.setBounds(110, 470, 90, 30);
this.add(field4);
JButton button = new JButton("测试");//按钮
button.setBounds(230, 470, 65, 30);
button.setEnabled(false);//灰掉
this.add(button);
JCheckBox box = new JCheckBox("选择QQ登录服务器");
box.setBounds(30, 505, 140, 40);
this.add(box);
JLabel jLabel7 = new JLabel("设置你要登录到的服务器类型");
jLabel7.setBounds(25, 540, 170, 30);
this.add(jLabel7);
JLabel jLabel8 = new JLabel("需要登录的服务器地址");
jLabel8.setBounds(25, 575, 130, 30);
this.add(jLabel8);
String[] str1= {"UDP类型",""};
JComboBox<String> j1=new JComboBox<String>(str1);
j1.setBounds(200, 540, 100, 30);
j1.setEnabled(false);//灰掉
this.add(j1);
String[] str2= {"sz2.tencent.com",""};
JComboBox<String> j2=new JComboBox<String>(str2);
j2.setBounds(160, 575, 120, 30);
j2.setEnabled(false);//灰掉
this.add(j2);
}
public Exe() {
this.setTitle("QQ2007");
this.setIconImage(new ImageIcon("QQ/QQLoginFrame/logo.gif").getImage());
this.setSize(324, 660);
this.setLocationRelativeTo(null);
this.setResizable(false);
this.setLayout(null);
run();
run1();
run2();
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
}
public static void main(String[] args) {
new Exe();
}
private void run() {
JLabel jLabel=new JLabel();
jLabel.setIcon(new ImageIcon("QQ/QQLoginFrame/title.jpg"));
jLabel.setBounds(0, 0, 500, 60);
this.add(jLabel);
Font font=new Font("宋体",Font.BOLD,12);
String[] str= {"手机号码","QQ号码"};
JComboBox<String> j=new JComboBox<String>(str);
j.setFont(font);
j.setBounds(20, 60, 80, 30);
String[] str1= {"",""};
JComboBox<String> j1=new JComboBox<String>(str1);
j1.setFont(font);
j1.setBounds(105, 60, 100, 30);
this.add(j);
this.add(j1);
JLabel jLabel1 = new JLabel("申请号码");
jLabel1.setBounds(220, 60, 60, 30);
JLabel jLabel2 = new JLabel("QQ密码");
jLabel2.setBounds(30, 95, 50, 30);
this.add(jLabel1);
this.add(jLabel2);
JTextField field = new JTextField();
field.setBounds(105, 95, 110, 30);
this.add(field);
JLabel jLabel3 = new JLabel("忘了密码?");
jLabel3.setBounds(225, 95, 60, 30);
this.add(jLabel3);
JCheckBox box = new JCheckBox("自动登录",true);
box.setBounds(70, 125, 80, 40);
JCheckBox box1 = new JCheckBox("隐身登录");
box1.setBounds(180, 125, 80, 40);
this.add(box);
this.add(box1);
JButton button = new JButton("<>安全检查");//按钮
button.setBounds(30, 190, 100, 30);
JButton button1 = new JButton("设置");
button1.setBounds(140, 190, 70, 30);
JButton button2 = new JButton("登录");
button2.setBounds(230, 190, 60, 30);
this.add(button);
this.add(button1);
this.add(button2);
}
private void run1() {
JLabel jLabel = new JLabel("其他选项");
jLabel.setBounds(20, 220, 60, 30);
this.add(jLabel);
JLabel jLabel1 = new JLabel("登录模式:");
jLabel1.setBounds(30, 250, 70, 30);
this.add(jLabel1);
Font font=new Font("宋体",Font.BOLD,12);
String[] str= {"普通模式","VIP模式"};
JComboBox<String> j=new JComboBox<String>(str);
j.setFont(font);
j.setBounds(105, 250, 110, 30);
this.add(j);
JButton button = new JButton("清除记录");//按钮
button.setBounds(5, 290, 90, 30);
JButton button1 = new JButton("取回密码");
button1.setBounds(100, 290, 90, 30);
JButton button2 = new JButton("申请密码保护");
button2.setBounds(195, 290, 115, 30);
this.add(button);
this.add(button1);
this.add(button2);
}
private void run2(){
JLabel jLabel = new JLabel("网络设置");
jLabel.setBounds(20, 320, 60, 30);
this.add(jLabel);
JLabel jLabel1 = new JLabel("类型:");
jLabel1.setBounds(25, 350, 60, 30);
this.add(jLabel1);
Font font=new Font("宋体",Font.BOLD,12);
String[] str= {"不使用代理","使用代理"};
JComboBox<String> j=new JComboBox<String>(str);
j.setFont(font);
j.setBounds(60, 350, 90, 30);
this.add(j);
JLabel jLabel2 = new JLabel("地址:");
jLabel2.setBounds(25, 390, 60, 30);
this.add(jLabel2);
JTextField field = new JTextField();
field.setBounds(60, 390, 100, 30);
this.add(field);
JLabel jLabel3 = new JLabel("端口:");
jLabel3.setBounds(170, 390, 60, 30);
this.add(jLabel3);
JTextField field1 = new JTextField();
field1.setBounds(205, 390, 90, 30);
this.add(field1);
JLabel jLabel4 = new JLabel("用户:");
jLabel4.setBounds(25, 430, 60, 30);
this.add(jLabel4);
JTextField field2 = new JTextField();
field2.setBounds(60, 430, 100, 30);
this.add(field2);
JLabel jLabel5 = new JLabel("密码:");
jLabel5.setBounds(170, 430, 60, 30);
this.add(jLabel5);
JTextField field3 = new JTextField();
field3.setBounds(205, 430, 90, 30);
this.add(field3);
JLabel jLabel6 = new JLabel("域(可不填):");
jLabel6.setBounds(25, 470, 95, 30);
this.add(jLabel6);
JTextField field4 = new JTextField();
field4.setBounds(110, 470, 90, 30);
this.add(field4);
JButton button = new JButton("测试");//按钮
button.setBounds(230, 470, 65, 30);
button.setEnabled(false);//灰掉
this.add(button);
JCheckBox box = new JCheckBox("选择QQ登录服务器");
box.setBounds(30, 505, 140, 40);
this.add(box);
JLabel jLabel7 = new JLabel("设置你要登录到的服务器类型");
jLabel7.setBounds(25, 540, 170, 30);
this.add(jLabel7);
JLabel jLabel8 = new JLabel("需要登录的服务器地址");
jLabel8.setBounds(25, 575, 130, 30);
this.add(jLabel8);
String[] str1= {"UDP类型",""};
JComboBox<String> j1=new JComboBox<String>(str1);
j1.setBounds(200, 540, 100, 30);
j1.setEnabled(false);//灰掉
this.add(j1);
String[] str2= {"sz2.tencent.com",""};
JComboBox<String> j2=new JComboBox<String>(str2);
j2.setBounds(160, 575, 120, 30);
j2.setEnabled(false);//灰掉
this.add(j2);
}
}