private void idCmbxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_idCmbxActionPerformed
        String id = "";
        try {
            if (idCmbx.getSelectedItem() != null) {
                ComboBoxUtility.setComboItem(currentClasses, "select classID from classdetail where studentID='" + idCmbx.getSelectedItem().toString() + "'");
            }
        } catch (SQLException ex) {
            Logger.getLogger(EditStudent.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(EditStudent.class.getName()).log(Level.SEVERE, null, ex);
        }
        if (idCmbx.getSelectedItem() != null && idCmbx.getSelectedIndex() != 0) {
            id = idCmbx.getSelectedItem().toString();
            Student student = controller.searchStudentByID(id);
            txtAddress.setText(student.getAddress());
            phoneTxt.setText(student.getMobileNumber());
            genderCmbx.setSelectedItem(student.isMale() ? "Male" : "Female");
            gurdNameTxt.setText(student.getGuardianName());
            guardPhnTxt.setText(student.getGuardianNumber());
            nameCmbx.setSelectedItem(student.getFirstName() + " " + student.getLastName());
            imgLbl.setIcon(student.getImage());
        }
    }//GEN-LAST:event_idCmbxActionPerformed