Example usage for javax.swing DefaultListModel clear

List of usage examples for javax.swing DefaultListModel clear

Introduction

In this page you can find the example usage for javax.swing DefaultListModel clear.

Prototype

public void clear() 

Source Link

Document

Removes all of the elements from this list.

Usage

From source file:se.trixon.toolbox.rsync.job.JobManager.java

public DefaultListModel populateModel(DefaultListModel model) {
    model.clear();

    for (Job job : mJobs) {
        model.addElement(job);/*from w w  w  .  j av a 2  s .co  m*/
    }

    return model;
}

From source file:se.trixon.toolbox.rsync.task.TaskManager.java

public DefaultListModel populateModel(DefaultListModel model) {
    model.clear();

    for (Task job : mTasks) {
        model.addElement(job);//from w  ww. j  ava 2 s .  c  om
    }

    return model;
}