This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JProgressBar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JProgressBar" Watch "JProgressBar" New topic
Author

JProgressBar

Chris Stewart
Ranch Hand

Joined: Sep 14, 2002
Posts: 184
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

Joined: Oct 18, 2000
Posts: 4121

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Chris Stewart
Ranch Hand

Joined: Sep 14, 2002
Posts: 184
I figured this one out as well last night. I made some breakthroughs last night.
http://www.isy.vcu.edu/~cstewart/info350/Homework3.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JProgressBar
 
Similar Threads
Perhaps this time the fleet needs to sail
Trying to understand threads...
Need help getting frame to repaint...
Not refreshing...
Placing an image on a button...