title: How to create a task for using progress monitors in java?
body: <p>I've created a stand alone java application in which i need to copy files from one place to other. But the copying takes times and i want to show the progress of the copying with the help of progress monitor in java. Progress Monitor requires a task as its parameter, but i do not know how to create a task for that copying function. Can anyone please give me some code or examples regarding creating a task.<br>
  -Thanks in advance</p>