title: How to set the jProgressBar working according to the time taken for a task in java
body: <p>I m developing application that encrypt decrypt files, i want to use a  jProgressBar according to the real time taken to the process.</p>