aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Progress monitor in Swing" Watch "Progress monitor in Swing" New topic
Author

Progress monitor in Swing

sabari selvan
Greenhorn

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

Problem:
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
Bartender

Joined: May 03, 2008
Posts: 4530
    
    5

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
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Progress monitor in Swing