import javafx.beans.property.SimpleStringProperty import tornadofx.* class MMainView : View("MMain") { val outputProperty = SimpleStringProperty("") var output by outputProperty override val root = vbox(10) { textarea(outputProperty) { isEditable = false textProperty().onChange { end() } } button("Add") { setOnAction { for (i in 1..100) { output += "Hello\n" } } } } } class MApp : App(MMainView::class)