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!

setStyle vs getStyleClass().add updates

mfortnerJan 16 2013 — edited Jan 28 2013
I was wondering why there seems to be a difference between when the effects of using setStyle and getStyle().add() are made apparent on the screen? When I use setstyle to change the way a node is rendered in a chart, the effect is immediate. If I set the style class, then the change is not apparent until sometime later. Is there any way of forcing the style class change to be seen immediately?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2013
Added on Jan 16 2013
6 comments
12,283 views