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: [ASK]How to use JProgressBar for running Task / method()?

  1. #1
    Junior Member
    Join Date
    May 2013
    Location
    Indonesia
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question [ASK]How to use JProgressBar for running Task / method()?

    Dear All,

    Maybe colleagues there is one knows how to use JProgressBar for running Task/method()? For this that I know JProgressBar used with a manualy create count repetitions / timer, I think it was not effective. Examples of cases the application is to load data from a large enough database with a LoadData() method for example, which does not take a minute, whether colleagues there is one knows how to use JProgressBar to let the user know the status of the LoadData() method that is running?

    Thanks.
    Best & Regrads.

    *Sorry for my bad English


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,103
    My Mood
    Mellow
    Thanks
    244
    Thanked 755 Times in 741 Posts

    Default Re: [ASK]How to use JProgressBar for running Task / method()?

    If the method or task has a measurable goal, for example to load or search 30,000 records, and the progress towards that goal can be measured at discrete points, then that progress could be used to update the progress bar as currentStatus / 30,000. A Timer might still be used to take those discrete measurements at meaningful intervals.

Similar Threads

  1. JProgressBar
    By Tyluur in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 25th, 2013, 06:59 AM
  2. JProgressBar Issues
    By dr3wmurphy in forum AWT / Java Swing
    Replies: 1
    Last Post: August 11th, 2012, 02:15 AM
  3. Jtable with JprogressBar
    By dibyayan in forum AWT / Java Swing
    Replies: 1
    Last Post: October 17th, 2011, 08:33 AM
  4. Problems with rendering a jprogressbar
    By albertof in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 10th, 2010, 04:47 AM
  5. Replies: 1
    Last Post: February 16th, 2009, 11:52 AM

Tags for this Thread