Packages

p

scalafx

application

package application

Wraps javafx.application package.

Source
package.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. application
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait ApplicationIncludes extends AnyRef

    Contains implicit methods to convert from javafx.application Classes to their ScalaFX counterparts.

  2. sealed abstract class ConditionalFeature extends SFXEnumDelegate[javafx.application.ConditionalFeature]
  3. class HostServices extends SFXDelegate[javafx.application.HostServices]

    This class provides HostServices for an Application.

    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 JavaFX HostServices.

  4. trait JFXApp3 extends AnyRef

    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:

    object SimpleScalaFXApp extends JFXApp3 {
      override def start() : Unit = {
        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
              }
            }
          }
        }
      }
    }

Deprecated Type Members

  1. trait JFXApp extends DelayedInit

    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
             }
           }
         }
       }
    }
    Annotations
    @deprecated
    Deprecated

    (Since version 16.0.0-R23) JFXApp depends on DelayedInit that is deprecated since Scala 2.11.0 and no longer works in Scala 3. Use JFXApp3 instead.

Value Members

  1. object ApplicationIncludes extends ApplicationIncludes
  2. object ConditionalFeature extends SFXEnumDelegateCompanion[javafx.application.ConditionalFeature, ConditionalFeature]

    Wrapper for javafx.application.ConditionalFeature

  3. object HostServices
  4. object JFXApp
  5. object JFXApp3
  6. object Platform

    Application platform support, wrapper for javafx.application.Platform.

Inherited from AnyRef

Inherited from Any

Ungrouped