Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
JProgressBar and DB
Joined: Sep 10, 2004
Jan 01, 2006 11:25:00
Quick question: I have a query to the db that takes a while (~15 sec) I would like to let the end-user know that something is going in the background so don't exit.
Anyway, I don't know how long the query will take and I don't know how many records it will obtain, how a
can help? and/or if anyone has better alternative.
Joined: Oct 14, 2005
Jan 01, 2006 12:02:00
From the API documentation for the class:
"To indicate that a task of unknown length is executing, you can put a progress bar into indeterminate mode."
I will leave you to read on from there.
It is sorta covered in the
JavaRanch Style Guide
subject: JProgressBar and DB
JProgressBar like Bar with no Percentage?
Estimate length of hibernate query
SOS--------display data collection from database
MS SQL Server and Java...
How to make a effective JProgressBar
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013