It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes JProgressBar and DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JProgressBar and DB" Watch "JProgressBar and DB" New topic
Author

JProgressBar and DB

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi guys,

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 JProgressBar can help? and/or if anyone has better alternative.

Thanks
Peter
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JProgressBar and DB
 
Similar Threads
MS SQL Server and Java...
Estimate length of hibernate query
How to make a effective JProgressBar
JProgressBar like Bar with no Percentage?
SOS--------display data collection from database