List of usage examples for javax.swing.event ListDataEvent INTERVAL_ADDED
int INTERVAL_ADDED
To view the source code for javax.swing.event ListDataEvent INTERVAL_ADDED.
Click Source Link
From source file:put.semantic.fcanew.ui.FilesListModel.java
public void add(File[] files) { if (files == null || files.length == 0) { return;//from w w w .ja v a2 s. c o m } int begin = data.size(); data.addAll(Arrays.asList(files)); int end = data.size() - 1; ListDataEvent e = new ListDataEvent(this, ListDataEvent.INTERVAL_ADDED, begin, end); for (ListDataListener l : listeners) { l.intervalAdded(e); } }