edvin
05/20/2018, 7:21 AMobservableArrayList
function. val shapesProperty = SimpleListProperty<ShapeItem>(FXCollections.observableArrayList(arrayListOf()))
is redundant. Just do SimpleListProperty<ShapeItem>(FXCollections.observableArrayList())
. End result is the same though. More importantly, you have a bug in ShapeItem
. The constructor takes two parameters (name and path), but you just throw them on the floor, you don't assign them to your properties.