Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How would you realize a "blinking"-Effect

MarcelloDec 4 2012 — edited Dec 4 2012
The question narrows down to : Which is the best solution to trigger each 0,5 seconds an event (on the JavaFX thread) ?
I could do this with a TimelineAnimation or with a Task<Void>, the problem withthe Task is that I have to update the UI with Platform.runLater() each time which is an impact on the overall perfomance. On the otherhand the TimerLineAnimation is useful to update a property and I do not think that it is the approriate method to realize a blink effect.

How would you do this ?


E.G. I have a circle. This shape is supposed to change its Color every 0,5 seconds (And there can be many of this circles..)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2013
Added on Dec 4 2012
2 comments
1,026 views