public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
                if (reportPanel == instructorReportPanel) {
                    Object selected = instructorReportPanel.getSelected();
                    if (selected != null) {
                        if (selected instanceof Instructor) {
                            Instructor i = (Instructor) selected;
                            middleLeftPanel.remove(reportPanel);
                            middleRightPanel.remove(detailsPanel);
                            instructorPanel = new InstructorPanel(i);
                            detailsPanel = instructorPanel;
                            middleLeftPanel.add(reportPanel);
                            constraints.weightx = 0.4;
                            constraints.weighty = 0.6;
                            constraints.gridx = 1;
                            constraints.gridy = 0;
                            detailsPanel.setBorder(BorderFactory.createLineBorder(Color.black));
                            middleRightPanel.add(detailsPanel, BorderLayout.CENTER);
                            middleLeftPanel.revalidate();
                            middleRightPanel.revalidate();
                            repaint();
                        } else if (selected instanceof Course) {
                            Course c = (Course) selected;
                            middleLeftPanel.remove(reportPanel);
                            middleRightPanel.remove(detailsPanel);
                            coursePanel = new CoursePanel(c);
                            detailsPanel = coursePanel;
                            middleLeftPanel.add(reportPanel);
                            constraints.weightx = 0.4;
                            constraints.weighty = 0.6;
                            constraints.gridx = 1;
                            constraints.gridy = 0;
                            detailsPanel.setBorder(BorderFactory.createLineBorder(Color.black));
                            middleRightPanel.add(detailsPanel, BorderLayout.CENTER);
                            middleLeftPanel.revalidate();
                            middleRightPanel.revalidate();
                            repaint();
                        }
                    }
                } else if (reportPanel == courseReportPanel) {
                    Course selected = courseReportPanel.getCourse();
                    if (selected != null) {
                        middleLeftPanel.remove(reportPanel);
                        middleRightPanel.remove(detailsPanel);
                        coursePanel = new CoursePanel(selected);
                        detailsPanel = coursePanel;
                        middleLeftPanel.add(reportPanel);
                        constraints.weightx = 0.4;
                        constraints.weighty = 0.6;
                        constraints.gridx = 1;
                        constraints.gridy = 0;
                        detailsPanel.setBorder(BorderFactory.createLineBorder(Color.black));
                        middleRightPanel.add(detailsPanel, BorderLayout.CENTER);
                        middleLeftPanel.revalidate();
                        middleRightPanel.revalidate();
                        repaint();
                    }
                }
            }
        }