private void initTrainingAttendedTable(){
        try{
            String sql = "select trainingTitle,trainingDate,trainingPersonnel from EmpTrainingAttended where empNo = ?";
            conn = DBConnect.connect();
            pst = conn.prepareStatement(sql);
            pst.setString(1, empNm);
            rs = pst.executeQuery();
            TrainingAttendedTable.setModel(DbUtils.resultSetToTableModel(rs));
        }
        catch(Exception e){
            JOptionPane.showMessageDialog(null, e);
        }
        finally{
            if(pst != null){
                try{
                    pst.close();
                }
                catch(SQLException e){

                }
            }
            if(rs != null){
                try{
                    rs.close();
                }
                catch(SQLException e){

                }
            }
            if(conn != null){
                try{
                    conn.close();
                }
                catch(SQLException e){

                }
            }
        } 
    }