private void idCmbxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_idCmbxActionPerformed
        String id = "";
        tableModel.setRowCount(0);
        if (idCmbx.getSelectedItem() != null && idCmbx.getSelectedIndex() != 0) {
            id = idCmbx.getSelectedItem().toString();
            if (!id.equals("No such employee..")) {
                try {
                    ResultSet rst = controller.searchWorkingDetByID(id);
                    Employee employee = empController.searchEmployeeByID(id);

                    if (employee != null) {
                        nameCmbx.setSelectedItem(employee.getFirstName() + " " + employee.getLastName());
                        desiTxt.setText(employee.getDesignation());
                    }
                    imageLbl.setIcon(employee.getImage());
                    if (rst.first()) {
                        do {
                            String date = rst.getDate(1).toString();
                            String time = rst.getTime(2).toString();
                            String classID = rst.getString(3);
                            tableModel.addRow(new String[]{date, time, classID});
                        } while (rst.next());
                    }
                } catch (SQLException | ClassNotFoundException ex) {
                }
            }
        }
    }//GEN-LAST:event_idCmbxActionPerformed