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.

Results 1 to 2 of 2

Thread: Monitoring thread for progress bar.

  1. #1
    Member
    Join Date
    Oct 2010
    Posts
    40
    Thanks
    0
    Thanked 2 Times in 1 Post

    Default Monitoring thread for progress bar.

    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?


  2. #2
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    490
    Thanks
    8
    Thanked 46 Times in 44 Posts

    Default Re: Monitoring thread for progress bar.

    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

Similar Threads

  1. Monitor the progress of sending a file to client
    By adumi in forum Java Theory & Questions
    Replies: 0
    Last Post: April 17th, 2010, 07:01 AM
  2. [Swing-Progress Bar] Can't resize progress bar
    By Grabar in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 14th, 2010, 12:27 PM
  3. Monitoring program
    By jassi in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 7th, 2010, 11:29 PM
  4. progress bar problem
    By LeonLanford in forum AWT / Java Swing
    Replies: 4
    Last Post: October 24th, 2009, 07:14 AM
  5. Progress bar while uploading a file in web application
    By jazz2k8 in forum AWT / Java Swing
    Replies: 4
    Last Post: July 8th, 2008, 07:32 AM