public class WinTest {
public static void main(String[] args) {
WinForm winForm = new WinForm("WINDOW窗口");
Picture picture = new Picture("LOGO图片");
winForm.addWindow(picture);
Button button1 = new Button("登录");
winForm.addWindow(button1);
Button button2 = new Button("注册");
winForm.addWindow(button2);
Frame frame = new Frame("FRAME1");
Label label1 = new Label("用户名");
frame.addWindow(label1);
TextBox textBox1 = new TextBox("文本框");
frame.addWindow(textBox1);
Label label2 = new Label("密码");
frame.addWindow(label2);
PasswordBox passwordBox = new PasswordBox("密码框");
frame.addWindow(passwordBox);
CheckBox checkBox = new CheckBox("复选框");
frame.addWindow(checkBox);
TextBox textBox2 = new TextBox("记住用户名");
frame.addWindow(textBox2);
LinkLabel linkLabel = new LinkLabel("忘记密码");
frame.addWindow(linkLabel);
winForm.addWindow(frame);
winForm.print();
}
}
评论