zoukankan      html  css  js  c++  java
  • 个人信息

    package 个人信息显示界面;
        import java.awt.*;
        public class LoginFrame extends Frame
        {
            public LoginFrame ()
            {
             super("个人信息");
             this.setSize(250,250);//设计组件的尺寸
             this.setLocation(800,600);//设计组件显示的位置
             this.setBackground(Color.pink);//设计背景颜色
             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("19",20));
             this.add(new Label("籍贯:"));
             this.add(new TextField("青海",20));
             this.add(new Button("OK"));
             this.setVisible(true);
             
            }
             public static void main(String args[]){new LoginFrame();}

        }

  • 相关阅读:
    Codeforces Round #425 (Div. 2) Problem A Sasha and Sticks (Codeforces 832A)
    bzoj 2301 Problem b
    bzoj 1101 [POI2007]Zap
    bzoj 2005 能量采集
    bzoj 2527 Meteors
    bzoj 2724 [Violet 6]蒲公英
    回顾树状数组
    bzoj 3237 连通图
    bzoj 2733 永无乡
    Codeforces 817C Really Big Numbers
  • 原文地址:https://www.cnblogs.com/lx-20163311114/p/9135776.html
Copyright © 2011-2022 走看看