• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JProgressBar and DB

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20735
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic