标签:bsp static textfield tla imp package new 用户 java
package 个人信息;
import java.awt.*;
public class Frame1 extends Frame
{
public Frame1 ()
{
super("个人信息");
this.setSize(250,200);
this.setLocation(800,600);
this.setBackground(Color.blue);
this.setLayout(new FlowLayout());
this.add(new Label("姓名"));
this.add(new TextField("海杰",20));
this.add(new Label("性别"));
this.add(new TextField("男",20));
this.add(new Label("民族"));
this.add(new TextField("壮族",20));
this.add(new Label("年龄"));
this.add(new TextField("32",20));
this.add(new Button("确定"));
this.setVisible(true);
}
public static void main(String args[]){new Frame1();}
}
标签:bsp static textfield tla imp package new 用户 java
原文地址:https://www.cnblogs.com/ch991376/p/9142390.html