private void setListener() {
		rBtn1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				showSelectTable();
			}
		});

		rBtn2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				showCourseTable();
			}
		});

		selectBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				Feedback fb = logic.selectCommonCourse(infoTable2.getValueAt(
						infoTable2.getSelectedRow(), 0).toString());
				if (fb == Feedback.OPERATION_SUCCEED) {
					showSelectTable();
					showCourseTable();
				} else {
					JOptionPane.showMessageDialog(null, fb.getContent());
				}
			}
		});
		cancelBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				Feedback fb = logic.cancelCommonCourse(infoTable1.getValueAt(
						infoTable1.getSelectedRow(), 0).toString());
				if (fb == Feedback.OPERATION_SUCCEED) {
					showSelectTable();
					showCourseTable();
				} else {
					JOptionPane.showMessageDialog(null, fb.getContent());
				}
			}
		});
		infoTable1.addMouseListener(new MouseAdapter() {
			public void mouseClicked(MouseEvent arg0) {
				infoTable2.clearSelection();
				int selectRowNum = infoTable1.getSelectedRow();
				if (infoTable1.getSelectedRowCount() == 1 && selectRowNum != -1) {
					Object o = logic.showCourseDetail(logic.showCurrentTerm(),
							infoTable1.getValueAt(selectRowNum, 0).toString());
					if (o instanceof CourseDetailVO) {
						area.setText("");
						area.append("课程介绍：\r\n"
								+ ((CourseDetailVO) o).introduction
								+ "\r\n\r\n" + "推荐书目：\r\n"
								+ ((CourseDetailVO) o).book + "\r\n\r\n"
								+ "课程大纲：\r\n" + ((CourseDetailVO) o).syllabus
								+ "\r\n\r\n");
						selectBtn.setVisible(false);
						cancelBtn.setVisible(true);
						infop.getCenterPanel().add(cancelBtn,
								BorderLayout.SOUTH);
					}
				} else {
					area.setText("");
					cancelBtn.setVisible(false);
					selectBtn.setVisible(false);
				}
			}
		});
		infoTable2.addMouseListener(new MouseAdapter() {
			public void mouseClicked(MouseEvent arg0) {
				infoTable1.clearSelection();
				int selectRowNum = infoTable2.getSelectedRow();
				System.out.println(infoTable2.getSelectedRowCount());
				System.out.println(selectRowNum);
				if (infoTable2.getSelectedRowCount() == 1 && selectRowNum != -1) {
					Object o = logic.showCourseDetail(logic.showCurrentTerm(),
							infoTable2.getValueAt(selectRowNum, 0).toString());
					if (o instanceof CourseDetailVO) {
						area.setText("");
						area.append("课程介绍：\r\n"
								+ ((CourseDetailVO) o).introduction
								+ "\r\n\r\n" + "推荐书目：\r\n"
								+ ((CourseDetailVO) o).book + "\r\n\r\n"
								+ "课程大纲：\r\n" + ((CourseDetailVO) o).syllabus
								+ "\r\n\r\n");
						selectBtn.setVisible(true);
						cancelBtn.setVisible(false);
						infop.getCenterPanel().add(selectBtn,
								BorderLayout.SOUTH);
					}
				} else {
					area.setText("");
					cancelBtn.setVisible(false);
					selectBtn.setVisible(false);
				}
			}
		});
	}