Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JProgressBar

 
Chris Stewart
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've implemented a simple JProgressBar in an applet but it doesn't display correctly for me. I click the button, and see the popup show, but it never actually shows the progress happening. Can anybody help me here?
Link: http://www.isy.vcu.edu/~cstewart/info350/Homework3.html
Applet code:
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out How to use Timers in the Java Tutorial... your progress monitor isn't updating because your for loop in the LoadImages() method is holding the event processing thread.
 
Chris Stewart
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured this one out as well last night. I made some breakthroughs last night.
http://www.isy.vcu.edu/~cstewart/info350/Homework3.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic