Can't get popup for ProgressMonitorInputStream to work
I did search for ProgressMonitorInputStream and came up short. If I just didn't search properly, I apologize.
I am trying to use ProgressMonitorInputStream to display a popup progress bar while I process an input file. The popup does display but not completely. The processing does complete and the popup goes away afterwords but during processing all the popup displays is "Processing...". There is no progress bar displayed. Just a blank while box.
Here is the relevant code snippet:
Also I did look at the minimum and maximum size attributes (by doing a pmon.getMaximum() and pmon.getMinimum() and they are set to the byte length of the file and 0 respectively.
= new ProgressMonitorInputStream(
ProgressMonitor pmon = pmonIS.getProgressMonitor();
InputStream inStream = new BufferedInputStream(pmonIS);
while ((c = inStream.read()) != -1)
What am I doing wrong?