<@U3YFHFL1L> Yes, that did the trick, thanks. This...
# getting-started
v
@hudsonb Yes, that did the trick, thanks. This solved the problem (for initial example in Java):
Copy code
import tornadofx.*
class MyClass {
  var myObservableProperty = SimpleStringProperty()
  var myObservable by myObservableProperty
}
and
Copy code
val myClass = MyClass()
val property = myClass.myObservableProperty
myClass.myObservable = "New data"
println(myClass.myObservable)
Yeah, I love Kotlin 😃
b
If you don't need a direct reference to the
SimpleStringProperty
, you can just initialize it as the delegate directly
Copy code
class MyClass {
   var myObservable by SimpleStringProperty()
}
v
Good to know, i.e. here I'm getting observable property in one line. But I was using reference to
SimpleStringProperty
to set up observer via
setCellValueFactory