private void displayUsersTasks(){
        //find tasks for user logged in
        try {
            Project tempProject = null;
            
            ResultSet dbUsersTasks = null;
            Statement statement;
            statement = connection.createStatement();
            dbUsersTasks = statement.executeQuery( "SELECT Staff.staffID, Task.taskID, Task.projectID, Task.responsiblePerson, Task.taskPriority,"
                    + " Task.status, Task.taskName, Task.assetID FROM Staff INNER JOIN Task ON "
                    + "Staff.staffID = Task.responsiblePerson WHERE Staff.staffID =" + UserLoggedIn.getUserID() + ";");                     

            while(dbUsersTasks.next())
            {
                //get Project from SetOfProjects where projectID = 
                int tempProjectID = dbUsersTasks.getInt("Task.projectID");
                
                for (int i=0; i<allProjects.size();i++){
                    if(allProjects.get(i).getProjectID()==(tempProjectID))
                    {
                        tempProject = (allProjects.get(i));
                    }
                }
                //Task task = new Task(dbUsersTasks.getInt("Task.taskID"), UserLoggedIn, dbUsersTasks.getString("Task.TaskName"), dbUsersTasks.getInt("Task.taskPriority"),
                                //dbUsersTasks.getString("Task.taskStatus"), tempProject);
                //usersTasks.addTask(task);
                jList1.setListData(usersTasks);
            }
            
            
            
            
            
        } catch (SQLException ex) {
            Logger.getLogger(testFrame3Tim.class.getName()).log(Level.SEVERE, null, ex);
        }
    }