Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help on JProgressBar!!  RSS feed

 
S Sharma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to show a status bar on my application and am aware that I need to use JProgressBar. The problem is that it should be shown as incrementing blocks(increasing rectangles as the task progresses)...not a percentage value or an incrementing filled block.
Can somebody please help me out with this? I looked at the APi but there are no styles available for JProgressBar.
Many thanks!
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could implement your own LookAndFeel which modified how the JProgressBar looked -- not a trivial undertaking, although not at all impossible. You'd have to weigh the difficulty of doing that vs. the difficulty of writing a JProgressBar replacement from scratch.
Why do you have this requirement, anyway?
 
S Sharma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks, Ernest!
The requirement has been specified by the client(isnt it always... ).
Anyways, am thinking of convincing them to go along with the percentage bar, since its easy to implement and gives the reqd info.
Thanks, again!
 
GKRCR
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can u please send me the snippet of the progress bar code sinceim implementing the ocde im unable to implement. my rpoblem is
i have a serach button in my panel and when the search button is clicked im calling a method which will search the database and find the results in the mean time i want to display the progress bar can u help me out
thanx in advance
regards
venkat
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"GKRCR" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!