How can i populate JTable with ArrayList objects?

I am wanting to populate my JTable in my UserInterface class with the ArrayList I have in a different class. My classes are as below:

UserInterface Class

String[] columnNames = {"Task","Date Due","Priority"};

    DefaultTableModel tableModel = new DefaultTableModel(columnNames, 0);
    table = new JTable(tableModel);
    scrollPane.setViewportView(table);

List Class – Array List

public class List {

private ArrayList <Task> tasks;

public List(){
    tasks = new ArrayList <Task>();
    tasks.add(new Task("Task 1", "Friday", "low")); //used for testing 
    tasks.add(new Task("Task 2", "Friday", "High")); //used for testing

}

public void printList(){
    for (Task t : tasks){
        System.out.println(t);
    }
}

public void addTask(String taskName, String dueDate, String taskPriority){
    tasks.add(new Task(taskName, dueDate, taskPriority));
}

public String[] getTaskList() {
    String[] tasksArray = new String[tasks.size()];

    for (int index = 0; index < tasks.size(); index++) {
        tasksArray[index] = tasks.get(index).toString();
    }
    return tasksArray;
}

public void removeTask(int taskToRemove){
    tasks.remove(taskToRemove);
}

public void populateJTable(){
    for (int i = 0; i < tasks.size(); i++){
           String name = tasks.get(i).getTaskName();
           String dueDate = tasks.get(i).getTaskPriority();
           String priority = tasks.get(i).getTaskPriority();
           Object[] data = {name, dueDate, priority};
    }}

}

Task Class

public class Task {

private String taskName;
private String dueDate;
private String taskPriority;

public Task(String newTaskName, String newDueDate, String newTaskPriority){
    taskName = newTaskName;
    dueDate = newDueDate;
    taskPriority = newTaskPriority;
}

public void setTaskName(String newTaskName){
    taskName = newTaskName;
}
public String getTaskName(){
    return taskName;
}

public void setDueDate(String newDueDate){
    dueDate = newDueDate;
}
public String getDueDate(){
    return dueDate;
}

public void setTaskPriority(String newTaskPriority){
    taskPriority = newTaskPriority;
}
public String getTaskPriority(){
    return taskPriority;
}

public String toString(){
    return taskName + ", " + dueDate + ", " + taskPriority;
}
}

So I need a way to get these objects onto the JTable. In the ArrayList class as you can see I have created the method populateJTable that will loop the Array and get the details. But I need to get these details onto the JTable and also the method only outputs the Object reference. How would i do this. Also i have looked at other questions and they have been of no help. Thanks in advance.