public StudentDialog(Frame owner) {
		super(owner);
		this.setModalityType(ModalityType.DOCUMENT_MODAL);

		// òֹ
		GridBagLayout layout = new GridBagLayout();
		GridBagConstraints c1 = new GridBagConstraints();
		GridBagConstraints c2;
		this.setLayout(layout);

		c1.gridx = GridBagConstraints.RELATIVE;
		c1.gridy = GridBagConstraints.RELATIVE;
		c2 = (GridBagConstraints) c1.clone();
		c2.fill = GridBagConstraints.HORIZONTAL;
		c2.weightx = 1.0;
		c2.gridwidth = GridBagConstraints.REMAINDER;

		// ѧ
		JLabel label = new JLabel("ѧ:");
		layout.setConstraints(label, c1);
		add(label);
		no = new JTextField(20);
		layout.setConstraints(no, c2);
		add(no);

		// 
		label = new JLabel(":");
		layout.setConstraints(label, c1);
		add(label);
		name = new JTextField(20);
		layout.setConstraints(name, c2);
		add(name);

		// Աб
		label = new JLabel("Ա:");
		layout.setConstraints(label, c1);
		add(label);
		sex = new JComboBox<String>(new String[] { "", "Ů" });
		layout.setConstraints(sex, c2);
		add(sex);

		// 
		label = new JLabel(":");
		layout.setConstraints(label, c1);
		add(label);
		buildBirthdayBoxs();// year/month/day
		layout.setConstraints(year, c1);
		add(year);
		label = new JLabel("");
		layout.setConstraints(label, c1);
		add(label);
		layout.setConstraints(month, c1);
		add(month);
		label = new JLabel("");
		layout.setConstraints(label, c1);
		add(label);
		layout.setConstraints(day, c1);
		add(day);
		label = new JLabel("");
		layout.setConstraints(label, c2);
		add(label);

		// ַ
		label = new JLabel("ַ:");
		layout.setConstraints(label, c1);
		add(label);
		address = new JTextField(20);
		layout.setConstraints(address, c2);
		add(address);

		// 绰
		label = new JLabel("绰:");
		layout.setConstraints(label, c1);
		add(label);
		tel = new JTextField(20);
		layout.setConstraints(tel, c2);
		add(tel);

		// E-mail
		label = new JLabel("E-mail:");
		layout.setConstraints(label, c1);
		add(label);
		email = new JTextField(20);
		layout.setConstraints(email, c2);
		add(email);

		// ȷť
		button = new JButton("ȷ");
		button.addActionListener(this);
		c2.fill = GridBagConstraints.NONE;
		c2.gridwidth = GridBagConstraints.REMAINDER;
		layout.setConstraints(button, c2);
		add(button);

		this.addWindowListener(new WindowAdapter() {

			@Override
			public void windowClosing(WindowEvent e) {
				canceled = true;
				dispose();
			}

		});
		pack();
	}