ianbrandt
06/03/2018, 1:54 PMApplication.launch(MyApp::class.java, *args)
to launch<MyApp>(args)
, it now picks up operator fun EventTarget.plusAssign(node: Node) { addChildIfPossible(node)}
for +=
from Nodes.kt, and works!
import javafx.scene.control.Button
import javafx.scene.layout.VBox
import tornadofx.*
fun main(args: Array<String>) {
launch<MyApp>(args)
}
class MyApp : App(MyView::class)
class MyView : View() {
override val root = VBox()
init {
root += Button("Press Me")
}
}