| Author |
JProgressBar with a database connection
|
dushantha Rathnayake
Ranch Hand
Joined: Feb 27, 2010
Posts: 100
|
|
Hi,
I have a database. I want to load this data onto my JTable. The problem is it takes several seconds. in this time period I need to show loading message using a JProgressBar.How can i do this? I did try with google. But I didn't find any answer. Please help me.
Thank You.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Use SwingWorker. In short, you start the progress bar (in indeterminate mode, as you don't know how long it will take) , then execute the SwingWorker. In it's done() method (which you override) you stop the progress bar again.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: JProgressBar with a database connection
|
|
|