public class MyController : Controller() { val myRepository : MyRepository by di() val myList : ObservableList = FXCollections.observableArrayList() fun loadData(){ runAsync { db.loadData() } ui { myList.clear() myList.addAll( it ) // I want to tell the view to select the first row in the table without accessing it directly } } }