• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Progress Bar

 
Danish Shaukat
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
I want to make a progress bar using a non-interactive gauge. I want that after a specified time period the bar shows progress. But i can't figure out how do i make this thing. I have tried to make the current thread sleep for some time and then display the gauge, but it always ends up displaying the last screen.
Regards
Danish
 
Frank Manno
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Danish,
You're in luck... I'm on the Gauge section of my J2ME book, and the example I'm working on has that exact piece of code you're looking for.
You need to create a Timer object, as well as a TimerTask object that will be executed when you schedule its execution:

Hope that helps...
[ July 03, 2003: Message edited by: Frank Manno ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic