private void TrainingAttendedTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TrainingAttendedTableMouseClicked
        int row = TrainingAttendedTable.getSelectedRow();
        trTitle = (TrainingAttendedTable.getModel().getValueAt(row,0).toString());
        trDate = (TrainingAttendedTable.getModel().getValueAt(row,1).toString());
        trPersonnel = (TrainingAttendedTable.getModel().getValueAt(row,2).toString());
        trainingTitle.setText(trTitle);
        if(trDate != null && !"".equals(trDate)){
            try{
                Date date = new SimpleDateFormat("yyyy-MM-dd").parse(trDate);
                trainingDate.setDate(date);
            } 
            catch(Exception e){
                JOptionPane.showMessageDialog(null, e);
            }
        }
        trainingPersonnel.setText(trPersonnel);
        editTrainingAttended.setEnabled(true);
        deleteTrAttended.setEnabled(true);
    }