Java实现注册界面
发布时间
阅读量:
阅读量
以下是经过同义改写的文本
public class MyFrame extends JFrame {
private JPanel pan1, pan2, pan3;
private JLabel labName, labPassword, labConfirm, labInstruction, labSex, labId, labNumber, labA;
private JTextField textField1, textField2;
private JPasswordField passwordField, passwordField2;
private JTextArea textArea;
private JRadioButton radioButton1, radioButton2;
private JComboBox comboBox;
private JCheckBox checkBox;
public MyFrame(String s) {
super(s);
setSize(320, 400);
setLocationRelativeTo(null);
创建一个新的JPanel实例,并将其配置为使用北中南布局。
然后调用setContentView方法将该实例指定为主面板。
pan1 = new J
全部评论 (0)
还没有任何评论哟~
