class Prescription(val treatment : String) { val treatmentProperty = SimpleStringProperty(treatment) } class EditableDemoView : View("Editable Demo") { val data = listOf ( Prescription("Aspirin"), Prescription("Cough Syrup"), Prescription("Decongestant") ).observable() override val root = vbox { tableview(data) { isEditable = true column("Treatment", Prescription::treatmentProperty) { makeEditable() } columnResizePolicy = TableView.CONSTRAINED_RESIZE_POLICY } } } class EditableDemo : App(EditableDemoView::class) fun main(args: Array) { launch(args) }