第二十四次发博不知道用什么标题好

package Test;

import java.awt.*;
import javax.swing.*;

public class Biubiu {
    JFrame a;
    JPanel b;
    JLabel c;
    JTextField d;
    JLabel e;
    JPasswordField f;
    JTextArea g;
    ButtonGroup h;
    JRadioButton i1, i2;

    public Biubiu() {
        a = new JFrame("请认真回答一下问题:");
        b = new JPanel();
        c = new JLabel("账号:");
        c.setFont(new Font("黑体", Font.BOLD, 0));
        d = new JTextField(10);
        e = new JLabel("密码:");
        e.setFont(new Font("黑体", Font.BOLD, 10));
        f = new JPasswordField(10);
        g = new JTextArea(5, 10);
        h = new ButtonGroup();
        i1 = new JRadioButton("男", true);
        i2 = new JRadioButton("女");

        h.add(i1);
        h.add(i2);

        a.add(b);
        b.add(c);
        b.add(d);
        b.add(e);
        b.add(f);
        b.add(i1);
        b.add(i2);
        a.setVisible(true);
        a.setSize(150, 230);
        b.setBackground(new Color(50, 100, 100));
        
    }

    public static void main(String[] args) {
        new Biubiu();

    }
}

五一假放得一时半会儿心都收不回来了hhhhh,打到一半就卡壳....

原文地址:https://www.cnblogs.com/shi-yuan/p/10817414.html