I think this is great code for small views: ```op...
# tornadofx
t
I think this is great code for small views:
Copy code
open class SimpleView constructor(title: String?, icon: Node?, rootGenerator: View.()-> Parent) : View(title, icon){
    constructor(title: String?, rootGenerator: View.()-> Parent) : this(title, null, rootGenerator)
    constructor(icon: Node?, rootGenerator: View.()-> Parent) : this(null, icon, rootGenerator)
    constructor(rootGenerator: View.()-> Parent) : this(null, null, rootGenerator)

    override val root: Parent = rootGenerator(this)
}
this can't break anything, isn't it?