private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton3MouseClicked
    // Enrollment :: Search Button Clicked
        
        // Evaluate which item was picked
        String selected = jComboBox1.getSelectedItem().toString();
        
        // Evaluate which radiobutton was clicked
        int radio = -1;
        if (jRadioButton1.isSelected()){
            radio = 0;
        } else if (jRadioButton2.isSelected()){
            radio = 1;
        } else if (jRadioButton3.isSelected()){
            radio = 2;
        } else {
            JOptionPane.showMessageDialog(rootPane, "Please select a semester to search.", "No Semester Selected", JOptionPane.WARNING_MESSAGE);
            return;
        }
        
        //"Select One", "CSci", "Biol", "Chem", "Math"
        if (radio == 0){
            if (jComboBox1.getSelectedIndex() == 0){
                jPanel6.removeAll();
                JOptionPane.showMessageDialog(rootPane, "Please select a course subject to search.", "No Subject Selected", JOptionPane.WARNING_MESSAGE);
            } else if (selected.equalsIgnoreCase("CSci")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Computer Science 160 - TuTh @ 3:00PM-4:15PM - Enrollment Closed");
                JCheckBox cb1 = new JCheckBox("Computer Science 242 - MWF @ 2:30PM-3:20PM - Enrollment Closed");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.validate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Biol")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Biology 101 - TuTh @ 3:00PM-4:15PM - Enrollment Closed");
                JCheckBox cb1 = new JCheckBox("Biology 239 - MWF @ 2:30PM-3:20PM - Enrollment Closed");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Chem")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Chemistry 101 - TuTh @ 3:00PM-4:15PM - Enrollment Closed");
                JCheckBox cb1 = new JCheckBox("Chemistry 304 - MWF @ 2:30PM-3:20PM - Enrollment Closed");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Math")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Math 160 - TuTh @ 3:00PM-4:15PM - Enrollment Closed");
                JCheckBox cb1 = new JCheckBox("Math 324 - MWF @ 2:30PM-3:20PM - Enrollment Closed");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else {
                JOptionPane.showMessageDialog(rootPane, "You have entered an incorrect username", "Incorrect Username", JOptionPane.WARNING_MESSAGE);
            }
        } else if (radio == 1){
            if (jComboBox1.getSelectedIndex() == 0){
                jPanel6.removeAll();
                JOptionPane.showMessageDialog(rootPane, "Please select a course subject to search.", "No Subject Selected", JOptionPane.WARNING_MESSAGE);
            } else if (selected.equalsIgnoreCase("CSci")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Computer Science 160 - TuTh @ 3:00PM-4:15PM - Full");
                JCheckBox cb1 = new JCheckBox("Computer Science 242 - MWF @ 2:30PM-3:20PM - Open");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.validate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Biol")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Biology 101 - TuTh @ 3:00PM-4:15PM - Full");
                JCheckBox cb1 = new JCheckBox("Biology 239 - MWF @ 2:30PM-3:20PM - Open");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Chem")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Chemistry 101 - TuTh @ 3:00PM-4:15PM - Full");
                JCheckBox cb1 = new JCheckBox("Chemistry 304 - MWF @ 2:30PM-3:20PM - Open");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Math")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Math 160 - TuTh @ 3:00PM-4:15PM - Full");
                JCheckBox cb1 = new JCheckBox("Math 324 - MWF @ 2:30PM-3:20PM - Open");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else {
                JOptionPane.showMessageDialog(rootPane, "You have entered an incorrect username", "Incorrect Username", JOptionPane.WARNING_MESSAGE);
            }
        } else if (radio == 2){
            if (jComboBox1.getSelectedIndex() == 0){
                jPanel6.removeAll();
                JOptionPane.showMessageDialog(rootPane, "Please select a course subject to search.", "No Subject Selected", JOptionPane.WARNING_MESSAGE);
            } else if (selected.equalsIgnoreCase("CSci")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Computer Science 160 - Dr. L.Linus, TuTh @ 3:00PM-4:15PM - Open");
                JCheckBox cb1 = new JCheckBox("Computer Science 242 - Mr. B.Gates, MWF @ 2:30PM-3:20PM - Open");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.validate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Biol")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Biology 101 - TuTh @ 3:00PM-4:15PM - Open");
                JCheckBox cb1 = new JCheckBox("Biology 239 - Dr. A.Carvol, MWF @ 2:30PM-3:20PM - Open");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Chem")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Chemistry 101 - Mr. P.Wizard, TuTh @ 3:00PM-4:15PM - Open");
                JCheckBox cb1 = new JCheckBox("Chemistry 304 - Dr. Bill Nye, MWF @ 2:30PM-3:20PM - Open");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else if (selected.equalsIgnoreCase("Math")){
                jPanel6.removeAll();
                JCheckBox cb = new JCheckBox("Math 160 - Dr. W.Who, TuTh @ 3:00PM-4:15PM - Open");
                JCheckBox cb1 = new JCheckBox("Math 324 - Dr. H.Turring, MWF @ 2:30PM-3:20PM - Open");
                cb.setVisible(true);
                cb1.setVisible(true);
                jPanel6.add(cb);
                jPanel6.add(cb1);
                jPanel6.setVisible(true);
                jPanel6.revalidate();
                jPanel6.repaint();
            } else {
                JOptionPane.showMessageDialog(rootPane, "You have entered an incorrect username", "Incorrect Username", JOptionPane.WARNING_MESSAGE);
            }
        }
    }