Hey all. I want to use ProgressMonitor class to indicates the progress of some operation. I use the following constructor : ProgressMonitor(Component, Object, String, int min, int max) my question is how can I know the value of max if this value may changed. for example I have a swing application that connects to a database, assume there is an operation may takes a long time to be finished, how can I know the value of max ? another example is deploytool of J2EE RI 1.3, while deploying, the tool displayes a progress bar indicates deploying of the ear file, how the deploytool could know the exact time ? thanks.