scalafx.application
Wraps `javafx.application` package.
Attributes
Members list
Type members
Classlikes
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ApplicationIncludes.type
Contains implicit methods to convert from `javafx.application` Classes to their ScalaFX counterparts.
Contains implicit methods to convert from `javafx.application` Classes to their ScalaFX counterparts.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Wrapper for javafx.application.ConditionalFeature
Wrapper for javafx.application.ConditionalFeature
Attributes
- Companion
- class
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass AnyShow all
- Self type
-
ConditionalFeature.type
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[ConditionalFeature]trait SFXDelegate[ConditionalFeature]class Objecttrait Matchableclass Any
- Known subtypes
-
object Controls.typeobject Effect.typeobject FXML.typeobject Graphics.typeobject InputMethod.typeobject InputMultitouch.typeobject InputPointer.typeobject InputTouch.typeobject Media.typeobject SWT.typeobject Scene3D.typeobject ShapeClip.typeobject Swing.typeobject TransparentWindow.typeobject TwoLevelFocus.typeobject UnifiedWindow.typeobject VirtualKeyboard.typeobject Web.typeShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HostServices.type
This class provides HostServices for an Application. This includes methods to get the code base and document base for an Application, show a web page in a browser, and communicate with the enclosing web page using JavaScript if the Application is running in a browser.
This class provides HostServices for an Application. This includes methods to get the code base and document base for an Application, show a web page in a browser, and communicate with the enclosing web page using JavaScript if the Application is running in a browser.
Wraps a $JFX $URL0 $TC]].
Attributes
- Companion
- object
- Supertypes
ScalaFX applications can extend JFXApp3 to create properly initialized JavaFX applications.
ScalaFX applications can extend JFXApp3 to create properly initialized JavaFX applications.
On the back end JFXApp3
first calls javafx.application.Application.launch then executes body of its constructor when javafx.application.Application.start(primaryStage:Stage) is called. Here is an example use:
import scalafx.application.JFXApp3
import scalafx.application.JFXApp3.PrimaryStage
import scalafx.geometry.Insets
import scalafx.scene.Scene
import scalafx.scene.layout.HBox
import scalafx.scene.paint.Color._
import scalafx.scene.paint._
import scalafx.scene.text.Text
object JFXApp3Demo extends JFXApp3 {
override def start(): Unit = {
stage = new PrimaryStage {
title = "ScalaFX Hello World!"
scene = new Scene {
fill = Color.rgb(38, 38, 38)
content = new HBox {
padding = Insets(50, 80, 50, 80)
children = Seq(
new Text {
text = "Hello World!"
style = "-fx-font: normal bold 100pt sans-serif"
fill = new LinearGradient(endX = 0, stops = Stops(Red, DarkRed))
}
)
}
}
}
}
}
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Application platform support, wrapper for javafx.application.Platform.
Application platform support, wrapper for javafx.application.Platform.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Platform.type
Deprecated classlikes
ScalaFX applications can extend JFXApp to create properly initialized JavaFX applications.
ScalaFX applications can extend JFXApp to create properly initialized JavaFX applications.
On the back end JFXApp
first calls javafx.application.Application.launch then executes body of its constructor when javafx.application.Application.start(primaryStage:Stage) is called. Here is an example use:
object SimpleScalaFXApp extends JFXApp {
stage = new PrimaryStage {
title = "Simple ScalaFX App"
scene = new Scene {
root = new StackPane {
padding = Insets(20)
content = new Rectangle {
width = 200
height = 200
fill = Color.DEEPSKYBLUE
}
}
}
}
}
Attributes
- Companion
- object
- Deprecated
-
[Since version 16.0.0-R23]
JFXApp
depends onDelayedInit
that is deprecated since Scala 2.11.0 and no longer works in Scala 3. UseJFXApp3
instead. - Supertypes