• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Progress monitor in Swing

 
sabari selvan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go through these tutorial pages:
How to Use Progress Bars
Concurrency in Swing
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic