Example usage for javax.swing.event ListDataListener intervalRemoved

List of usage examples for javax.swing.event ListDataListener intervalRemoved

Introduction

In this page you can find the example usage for javax.swing.event ListDataListener intervalRemoved.

Prototype

void intervalRemoved(ListDataEvent e);

Source Link

Document

Sent after the indices in the index0,index1 interval have been removed from the data model.

Usage

From source file:put.semantic.fcanew.ui.FilesListModel.java

public void clear() {
    if (!data.isEmpty()) {
        ListDataEvent e = new ListDataEvent(this, ListDataEvent.INTERVAL_REMOVED, 0, data.size() - 1);
        data.clear();//w ww. j  a  va  2  s  . c  om
        for (ListDataListener l : listeners) {
            l.intervalRemoved(e);
        }
    }
}