private void cmbSearchItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cmbSearchItemStateChanged
        // TODO add your handling code here:
        String studentID = "";
        String examID = "";
        if (cmbExamID.getSelectedItem() != null) {
            examID = cmbExamID.getSelectedItem().toString();

            if (cmbSearch.getSelectedItem() != null) {
                studentID = cmbSearch.getSelectedItem().toString();
                if (!studentID.equals("No such student")) {
                    try {
                        ResultSet rst = marksController.retrieveSingleStudentMarks(examID, cmbSearch.getSelectedItem().toString());

                        if (rst.next()) {
                            txtStudentID.setText(rst.getString("studentID"));
                            txtMarks.setText(rst.getString("marks"));
                        }

                    } catch (Exception e) {
                        JOptionPane.showMessageDialog(null, e);
                    }
                }
            }

        }

    }//GEN-LAST:event_cmbSearchItemStateChanged