太长发不完 我发你私信了
package zhuce;
import java.awt.*;
import java.awt.event.*;
import java.util.Enumeration;
import javax.swing.*;
public class zhuce extends Frame implements ActionListener {
Label user;
Label pwd;
TextField user1;
TextField pwd1;
Label sex;
Label love;
Button reg;
Button cel;
JRadioButton nan;
JRadioButton nv;
JCheckBox chifan;
JCheckBox shuijiao;
JCheckBox dadoudou;
ButtonGroup g;
public zhuce(){
user = new Label("会员姓名");
pwd = new Label("会员密码");
user1 = new TextField();
pwd1 = new TextField();
sex = new Label("性别");
love = new Label("爱好");
reg = new Button("注册");
cel = new Button("取消");
g=new ButtonGroup();
nan = new JRadioButton("男");
nv = new JRadioButton("女");
chifan = new JCheckBox("吃饭");
shuijiao =new JCheckBox("睡觉");
dadoudou = new JCheckBox("打豆豆");