APIdia Launch Partner
Top Description Classes
module javafx.swing

Package javafx.embed.swing


Defines APIs for the JavaFX / Swing interop support included with the JavaFX UI toolkit, including javafx.embed.swing.SwingNode (for embedding Swing inside a JavaFX application) and javafx.embed.swing.JFXPanel (for embedding JavaFX inside a Swing application).

The JFXPanel class defines a lightweight Swing component, which accepts and renders an instance of Scene and forwards all input events from Swing to the attached JavaFX scene. The javafx.embed.swing.SwingNode class is used to embed a Swing content into a JavaFX application. The content to be displayed is specified with the SwingNode.setContent method that accepts an instance of a Swing JComponent. The hierarchy of components contained in the JComponent instance should not contain any heavyweight components, otherwise SwingNode may fail to paint it. The content gets repainted automatically. All the input and focus events are forwarded to the JComponent instance.

Class Summary

Modifier and TypeClass and Description
pack-priv class
InputMethodSupport

A utility class containing the functions to support Input Methods

public class
JFXPanel

JFXPanel is a component to embed JavaFX content into Swing applications.

public class
SwingFXUtils

This class provides utility methods for converting data types between Swing/AWT and JavaFX formats.

public class
SwingNode

This class is used to embed a Swing content into a JavaFX application.