File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Progress monitor in Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Progress monitor in Swing" Watch "Progress monitor in Swing" New topic

Progress monitor in Swing

sabari selvan

Joined: Oct 10, 2011
Posts: 3
Currently, i am developing a Desktop Application.

Whenever i click the button, Method will be called from actionperformed method. That method will do the function.
The application won't respond to me whenever i click the button.

I come to know about Progress monitor and read the code in sun forum.
I don't know how to use it in my application.

Anyone give me some example with Swing Desktop app.(if you give some project, it will useful for me..)

Darryl Burke

Joined: May 03, 2008
Posts: 4952

Go through these tutorial pages:
How to Use Progress Bars
Concurrency in Swing

luck, db
There are no new questions, but there may be new answers.
Rob Spoor

Joined: Oct 27, 2005
Posts: 20049

I don't like ProgressMonitor. The user can close it whenever he feels like, even if the job isn't done yet. I prefer a SwingWorker in combination with a modal, non-closeable JDialog that includes a JProgressBar. The SwingWorker will update the JProgressBar through a PropertyChangeListener; there is an example of that on the SwingWorker Javadoc page.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Progress monitor in Swing
It's not a secret anymore!