Actually, TornadoFX has a helper for that. You can...
# tornadofx
r
Actually, TornadoFX has a helper for that. You can just say
addClass(Styles.redIcon)
and it will add the appropriate styleclass to match the generated selector.