/*
* 注册页面
*/
public abstract class AbstractRegistFrame extends JFrame {
public JLabel registLabel1 = new JLabel("用户注册"); // 注册标签1
public JLabel registLabel2 = new JLabel("传智播客.黑马程序员"); // 注册标签2
public JLabel userNameLabel = new JLabel("用户名"); // 用户名标签
public JTextField userNameField = new JTextField(); // 用户名文本框
public JLabel passwordLabel = new JLabel("密码"); // 密码标签
public JPasswordField passwordField = new JPasswordField(); // 密码文本框
public JLabel rePasswordLabel = new JLabel("重复密码"); // 重复密码标签
public JPasswordField rePasswordField = new JPasswordField(); // 重复密码文本框
public JLabel birthdayLabel = new JLabel("出生日期"); // 生日标签
public JComboBox<String> yearField = new JComboBox<String>(); // 年份选择框
public JComboBox<String> monthField = new JComboBox<String>(); // 月份选择框
public JComboBox<String> dayField = new JComboBox<String>(); // 日期选择框
public JButton registBtn = new JButton("注\t册");// 注册按钮
public JButton resetBtn = new JButton("重\t置");// 重置按钮
Calendar now = Calendar.getInstance();
int nowYear = now.get(Calendar.YEAR);
for (int i = 1900; i <= nowYear; i++) {
yearField.addItem(i + "");
}
for (int i = 1; i <= 12; i++) {
monthField.addItem(i + "");
}
for (int i = 1; i <= 31; i++) {
dayField.addItem(i + "");
}