hastebrot
01/29/2017, 2:42 PMView
in my App
I use setPrefSize()
to change the Stage
size. good for my use-cases, but obviously it is prefered to change the size in the App
.
class MyApp : App(MyView::class) {
// override fun createPrimaryScene(view: UIComponent) =
// Scene(view.root, 800.0, 600.0)
}
class MyView : View() {
override val root = stackpane {
setPrefSize(200.0, 200.0)
label("foo")
}
}