Two Laptop Bag*
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
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: 4523
    
    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: 19656
    
  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
 
Don't get me started about those stupid light bulbs.
 
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.