ProgressBar with while loop

Hi Friends,

Please help me out

In my project ,

1) I am selecting Employee ID from the database

2) While loop is used to get more information about employee using

these Employee ID.

3) ProgressBar is used to show progress of while loop ie. how many

employess ID are still remaining ?

Problem :

ProgressBar directly show 100% when all records fetch from the

database

Thanks in advanced.

[463 byte] By [jay.Da] at [2007-10-3 5:25:39]
# 1

Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html]How to Use Progress Bars[/url] for a working examples. The key is to execute your looping code in a separate Thread and use SwingUtilities.invokeLater(...) to update the progress bar. Read the section from the Swing tutorial on "How to Use Threads" for more information as well.

camickra at 2007-7-14 23:32:52 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks for your reply
jay.Da at 2007-7-14 23:32:52 > top of Java-index,Desktop,Core GUI APIs...