wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 4523

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: 19651

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: http://aspose.com/file-tools
subject: Progress monitor in Swing
Similar Threads
Java desktop application
how to write the data from text fields of my swing application to an xml file dynamically?
importing one desktop application in other
Newbie question: How to integrate JavaFx with Java
paust main thread for until finish work. Stop button.