protected void modify() {
		// ѡеҪ޸ĵ
		int row = this.table.getSelectedRow();
		if (row < 0)
			return;

		// Ҫ޸ĵѧϢ
		final String no = (String) tableModel.getValueAt(row, 0);
		Student isToModify = null;
		for (Student e : students)
			if (e.no.equals(no)) {
				isToModify = e;
				break;
			}

		if (!dialog.showModifyDialog(isToModify))
			return;// ûȡԻ,򷵻

		// ݿ޸ĳɹĻͽɵѧϢɾ,µѧϢ
		if (database.modifyStudent(dialog.editingNo, dialog.student)) {
			students.remove(isToModify);
			students.add(dialog.student);
			this.updateDisplay();
		} else
			JOptionPane.showMessageDialog(this, "ӵѧѧѧѧųͻ",
					"ѧʧ", JOptionPane.WARNING_MESSAGE);
	}