Fx.Application

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
class java.lang.Object
trait scala.Matchable
class Any
object Fx.Test0

Def

Constructor

def this(title: String, show: Boolean, verbose: Boolean)
Source
__.scala
def this(title: String, show: Boolean)
Source
__.scala
def this(title: String)
Source
__.scala
def this()
Source
__.scala

Body

def isStopped: Boolean
Source
__.scala
def main(sa: Array[String]): Unit
Source
__.scala
lazy val scene: Fx.Scene
Source
__.scala
lazy val stage: Fx.Application.Stage
Source
__.scala

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