@Override
	public void actionPerformed(ActionEvent e) {
		Calendar cal = Calendar.getInstance();
		cal.setTime(new Date());
		final int thisyear = cal.get(Calendar.YEAR);
		cal.set((Integer) year.getSelectedItem(),
				(Integer) month.getSelectedItem() - 1,
				(Integer) day.getSelectedItem());
		java.sql.Date date = new java.sql.Date(cal.getTimeInMillis());
		this.student = new Student(no.getText(), name.getText(), thisyear
				- (Integer) year.getSelectedItem(),
				(String) sex.getSelectedItem(), date, address.getText(),
				tel.getText(), email.getText());
		this.dispose();
	}