hello guys! seik is here with new questions for you!(again...T_T)
I'm making an app to show videos. If it was only to play and stop it would be great but NOOOO, we need to make it more complete.....(for boss hapiness and my despair lol)
So after a lot of study and pratice (....2 days is alot to me) I finally was able to make the bar that shows the progress of the video ^^.....with a small problem.....it only updates itself when I change focus on the form....T_T
Finally, after lots of useless talk, HERE IS THE QUESTION:
How can I animate a component "all the time" instand of "only when I change focus"
I mean: I want it(the bar) to repaint always (it could be every 1 sec or so), without the need for the user(who would be watching the video) to press a button(to change focus/update the bar)
-It extends Component
-Its constructor creates a Thread that repeats itself while the component isVisible(), inside it, sets a DirtyRegion on my BarComponent and calls repaint <-not sure if its the best option.....
-Has an overwriten method paint(), where I draw it(the bar);
If you didn't understand something, please ask, if you did understand and knows the answer.....please please please answer ^^