scalafx
package scalafx
- Alphabetic
- By Inheritance
- scalafx
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- package animation
Wraps
javafx.animationpackage. - package application
Wraps
javafx.applicationpackage. - package beans
Wraps
javafx.beanspackage. - package collections
Wraps
javafx.collectionspackage, adding Scala's collections features to original JavaFX collections. - package concurrent
Wraps
javafx.concurrentpackage. - package css
Wraps
javafx.csspackage.Wraps
javafx.csspackage.- Since
8.0
- package delegate
Contains traits and objects to help to wrap JavaFx classes in their equivalent ScalaFX classes/traits.
- package embed
- package event
Wraps
javafx.eventpackage. - package geometry
Wraps
javafx.geometrypackage. - package print
Wraps
javafx.printpackage.Wraps
javafx.printpackage.- Since
8.0
- package scene
Wraps
javafx.scenepackage. - package stage
Wraps
javafx.stagepackage. - package util
Wraps
javafx.utilpackage.
Type Members
- trait Includes extends AnimationIncludes with DelegateIncludes with CollectionIncludes with EventIncludes with SceneIncludes with BeanIncludes with UtilIncludes with GeometryIncludes with TransformIncludes with InputIncludes with StageIncludes with WebIncludes with MediaIncludes with ConverterIncludes with ConcurrentIncludes with CanvasIncludes with ApplicationIncludes with CssIncludes with PrintIncludes with SwingIncludes
Value Members
- object Includes extends Includes
Include file that contains all the necessary declarations for jfx->sfx implicit conversions and other syntactic sugar.
Include file that contains all the necessary declarations for jfx->sfx implicit conversions and other syntactic sugar.
This file is tiered both for modularity and to prioritize the implicits (the order of the withs matter a lot!)
ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.
Package Structure
ScalaFX package structure corresponds to JavaFX package structure, for instance
scalafx.animationcorresponds tojavafx.animation.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp3. Following Java FX theatre metaphor, it contains astagethat contains ascene. Astageroughly corresponds to a window in a typical UI environment. Thesceneholds UI content presented to the user. In the example below, the content is a pane with a singlelabelcomponent.