import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Landing extends Applet
{
int n=1;
JButton landing;
JLabel user,passward,wrong;
JTextField user2;
TextField passward2;
public void init()
{
user=new JLabel("账号");
user.setLocation(100,100);
add(user);
user2=new JTextField(25);
user2.setLocation(200,100);
add(user2);
passward=new JLabel("密码");
passward.setLocation(100,200);
add(passward);
passward2=new TextField(25);
passward2.setLocation(200,200);
passward2.setEchoChar('*');
add(passward2);
landing=new JButton("登录");
landing.setLocation(300,300);
add(landing);
wrong=new JLabel();
wrong.setLocation(100,400);
add(wrong);
}
}
/*
<Applet code="Landing.class" width=800 height=800>
</Applet>
*/