¡@

Home 

java Programming Glossary: fileworker

WatchService and SwingWorker: how to do it correctly?

http://stackoverflow.com/questions/7784909/watchservice-and-swingworker-how-to-do-it-correctly

files as newValue @SuppressWarnings unchecked public class FileWorker extends SwingWorker Void WatchEvent Path public static final.. private Path directory private WatchService watcher public FileWorker File file throws IOException directory file.toPath watcher FileSystems.getDefault.. File file directory.listFiles model.addElement file final FileWorker worker new FileWorker directory PropertyChangeListener l new..