• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

ProgressMonitorInputStream problem

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello people,

i can not figure it out how to show the process running with ProgressMonitorInputStream during the zip execution. I have written a GUI with Swing to zip the file and if i click the zip button, a dialog should appear to show me that the process is being done, for instance from 0% - 100%. The second question is, which one is the best to use : JProgressBar,ProgressMonitor,ProgressMonitorInputStream. I know that the bytes should be read and then pass to JProgressBar or the other, but i could not figure it out in two days. The code, that i have written, works but the ProgressMonitorInputStream does not show the 0%-100%. Can some please give me an example how to use the three class (JProgressBar,ProgressMonitor,ProgressMonitorInputStream) correctly ? any help would be appreciated.

This Code just only zip a file :
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaRanch Swing FAQ: JProgress Bar Doesn't Update
 
Slime does not pay. Always keep your tiny ad dry.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic