public JComponent getContent ()

Returns the JComponent instance attached to this SwingNode.

The method can be called either on the JavaFX Application thread or the Event Dispatch thread. Note however, that access to a Swing component must occur from the Event Dispatch thread according to the Swing threading restrictions.

Returns:  the Swing component attached to this SwingNode

See also:
java.awt.EventQueue.isDispatchThread(), javafx.application.Platform.isFxApplicationThread()