This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes ProgressMonitorInputStream problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ProgressMonitorInputStream problem" Watch "ProgressMonitorInputStream problem" New topic

ProgressMonitorInputStream problem

benny rusli
Ranch Hand

Joined: Jan 15, 2005
Posts: 72
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 :
Joe Ess

Joined: Oct 29, 2001
Posts: 8836

JavaRanch Swing FAQ: JProgress Bar Doesn't Update

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Don't get me started about those stupid light bulbs.
subject: ProgressMonitorInputStream problem
Similar Threads
Java suggestion field (auto completion)
My First GUI.....maybe
why doesn't this code work?
Not able to read the value of a component on one JPanel from a different JPanel
Convert Swing class to Applet?