This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Can anyone tell me how to repaint a component directly, rather than just entering it into the repaint queue. I want to provide a progress bar for a lengthy operation, but my progress bar doesn't get repainted until the entire operation is complete. I've tried: 1) Calling the traditional repaint() method on the progress bar and then calling Thread.sleep(10000). 2) calling the components paint() method directly. Neither seemed to have worked for me. Are there any other options?