hi everyone,
i am developing an application that might require a progress bar. is it possible to monitor the thread process of the whole application and automatically pop up a progress bar dialog whenever system becomes busy?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
hi everyone,
i am developing an application that might require a progress bar. is it possible to monitor the thread process of the whole application and automatically pop up a progress bar dialog whenever system becomes busy?
Take a look at javax.swing.ProgressMonitor (and maybe SwingWorker)
How to Use Progress Bars (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
Worker Threads and SwingWorker (The Java™ Tutorials > Creating a GUI With JFC/Swing > Concurrency in Swing)
If you use a SwingWorker, be aware that a recently introduced bug resulted in the undesired behavior that all SwingWorkers' doInBackground tasks run on the same thread, so only one can execute at a time.
db