Open aleksanderzagora opened 4 years ago
I was able to fix it by replacing:
style {
graphic = when {
it == "ROOT" -> URI("root.png")
else -> URI("not_root.png")
}
}
With
graphic = when {
it == "ROOT" -> ImageView(Image("root.png"))
else -> ImageView(Image("not_root.png"))
}
Your problem seems to be a result of a known bug that seems to be still unfixed in javaFX. Refer to this stackoverflow post and this bug report.
Hello! I am an absolute newbie to Kotlin, IntelliJ and TornadoFX.
I figured out how to display the icon in the TreeView. But if I collapse the node, the icons disappear. What am I doing wrong?
MyApp.kt
build.gradle