abstract class Application(width: Int.Opt, height: Int.Opt, title: String, show: Boolean, verbose: Boolean)
A convenient way to create GUI main executable class
object MyApp extends Fx.Application:
lazy val View = Fx.Label("Hello")
- Value Params
- show
if
true
,stage.show
will auto run- title
application window title
- verbose
if true, console prints application name, start, and end time
- Source
- __.scala
Def
Constructor
Body
Application view
Application view
Usually this "lazy val" is implemented as an object
object MyApp extends Fx.Application:
object View extends Fx.Pane.Flow:
children += Fx.Label("Hello")
- Source
- __.scala