Hi, Been trying to create a class with JavaFX pro...
# javafx
e
Hi, Been trying to create a class with JavaFX properties. I did not want to involve delegates / generic (yet) because I'm not too familiar with them yet. I've come up with the following, is there a better way to do it with Kotlin?
Copy code
class Person() {

    lateinit var firstName: SimpleStringProperty
    lateinit var lastName: SimpleStringProperty

    constructor(firstName: String, lastName: String) : this() {
        this.firstName = SimpleStringProperty(firstName)
        this.lastName = SimpleStringProperty(lastName)
    }
}