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
Attributes
- Companion
- class
- Supertypes
- Self type
-
ColorScheme.type
Defines the color scheme of the user interface, which specifies whether applications should prefer light text on dark backgrounds, or dark text on light backgrounds.
Defines the color scheme of the user interface, which specifies whether applications should prefer light text on dark backgrounds, or dark text on light backgrounds.
Attributes
- Since
-
JavaFX 22
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[ColorScheme]trait SFXDelegate[ColorScheme]class Objecttrait Matchableclass Any
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 Controlsobject Effectobject FXMLobject Graphicsobject InputMethodobject InputMultitouchobject InputPointerobject InputTouchobject Mediaobject SWTobject Scene3Dobject ShapeClipobject Swingobject TransparentWindowobject TwoLevelFocusobject UnifiedWindowobject VirtualKeyboardobject WebShow 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