task with nio2 copy show progress
887607Mar 9 2012 — edited Mar 9 2012Hi all! Is it possible to indicate the Progress of a task in wich i copy a file with the Files.copy(source, target) method. I think its a realy cool thing to copy files by this way, but i want the user inform about the progress with a progressbar from javaFX 2. The copy action is startet inside a Task and there i bind the progessproperty to the progressproperty from the progressbar. Now when i copy a file with the help of a filechannel i can update the progress with the updateProgress method inside the Task. But this way is more intesive to code than the Files.copy() way.
Someone has an idea???