Hi, i'm new to tornadofx and javafx in general, ho...
# tornadofx
a
Hi, i'm new to tornadofx and javafx in general, how can i put data inside this tableview without having to create a custom object the data i want to put inside is a Double.
a
hello. you have to bind list property with data to show to tableview, e.g. in tornadofx:
Copy code
tableview(list) {
}
where list is ObservableList (or ReadOnlyListProperty, or ObservableValue<out ObservableList<T>>) next you have to configure columns and bind records properties to cells values.
Copy code
tableview(rooms) {
    column("#", Room::id)
    column("Number", Room::number)
    column("Type", Room::type)
    column("Bed", Room::bed)
}
for more info see https://edvin.gitbooks.io/tornadofx-guide/content/part1/5_Data_Controls.html
additionally you can use
Copy code
setCellValueFactory {  }
or
Copy code
cellFormat {  }
in column definition to customize cell representation
a
Thank you i've managed to fix that