Forums Register Login

Repaint help???

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Swing is picky about threads and gui updates. Here's apointer into the tutorial page on dealing with progress bars.
This tiny ad is guaranteed to be gluten free.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 820 times.
Similar Threads
Problem with repaint()
Need help on JProgressBar!!
Swing - Problem with JProgress indefenite state
Progress Bar refreshing!
Progress Bar refreshing!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:18:52.