title: How to display the progress of read/write serilization in a JProgressBar?
body: <p>How to check the Progress of Java read/write serilization and display it in a <code>JProgressBar</code>? The tasks that need to be done are these:</p>
  
  <ol>
  <li>Check how many bytes have been read/written, and get a percentage done by dividing this by the total bytes that need to be read/written.</li>
  <li>Putting this value in a progress bar and then repaint the JFrame to update the background and display the JProgressBar</li>
  </ol>
  
  <p>Another problem could be how to do this for either reading or writing, as they are both very different. If it cannot be done for writing that is fine, but monitoring the reading is a priority.</p>