个人信息界面

it2022-05-05  143

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("20",20));     this.add(new Button("OK"));     this.setVisible(true);          }      public static void main(String args[]){new Frame1();}

}

 

转载于:https://www.cnblogs.com/baoyan/p/9132798.html

相关资源:信息管理界面html模板

最新回复(0)