package swing
Wraps JavaFX javafx.embed.swing
package.
- Source
- package.scala
- Since
8.0
- Alphabetic
- By Inheritance
- swing
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class SFXPanel extends SFXDelegate[JFXPanel]
Wraps JavaFX JFXPanel.
Wraps JavaFX JFXPanel. To use methods and properties from JComponent, use its delegate.
- Since
8.0
- trait SwingIncludes extends AnyRef
Contains implicit methods to convert from
embed.swing
Classes to their ScalaFX counterparts. - class SwingNode extends Node with SFXDelegate[javafx.embed.swing.SwingNode]
Wraps JavaFX SwingNode.
Wraps JavaFX SwingNode. This class is not implementing the
impl_*
methods from the original class.- Since
8.0
Value Members
- object SFXPanel
Companion Object for scalafx.embed.swing.SFXPanel.
- object SwingFXUtils
Wraps JavaFX SwingFXUtils.
Wraps JavaFX SwingFXUtils.
- Since
8.0
- object SwingIncludes extends SwingIncludes
Companion Object for scalafx.embed.swing.SwingIncludes.
- object SwingNode
Companion Object for scalafx.embed.swing.SwingNode.
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.animation
corresponds tojavafx.animation
.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp
. Following Java FX theatre metaphor, it contains astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.