Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

task with nio2 copy show progress

887607Mar 9 2012 — edited Mar 9 2012
Hi 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???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2012
Added on Mar 9 2012
3 comments
1,342 views