private void nameCmbxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nameCmbxActionPerformed
        tableModel.setRowCount(0);
        String name = "";
        if (nameCmbx.getSelectedItem() != null && nameCmbx.getSelectedIndex() != 0) {
            name = nameCmbx.getSelectedItem().toString();

            if (!name.equals("No such employee..")) {
                try {
                    Employee employee = empController.searchEmployeeByName(name);
                    if (employee != null) {
                        idCmbx.setSelectedItem(employee.getEmployeeID());
                        desiTxt.setText(employee.getDesignation());
                    }
                    imageLbl.setIcon(employee.getImage());
                    ResultSet rst = controller.searchWorkingDetByName(name);
                    while (rst.next()) {
                        String date = rst.getDate(1).toString();
                        String time = rst.getTime(2).toString();
                        String classID = rst.getString(3);
                        tableModel.addRow(new String[]{date, time, classID});
                    }
                } catch (SQLException | ClassNotFoundException ex) {
                }
            }
        }
    }//GEN-LAST:event_nameCmbxActionPerformed