class LeftRightLayoutView : View("Left Right Buttons") { override val root = hbox { button("Left 1") button("Left 2") hbox { button("Right") hgrow = Priority.ALWAYS alignment = Pos.TOP_RIGHT } prefWidth = 480.0 prefHeight = 320.0 paddingAll = 10 spacing = 2.0 } } class LeftRightLayout : App(LeftRightLayoutView::class) fun main(args: Array) { launch(args) }