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.
SwingNode
java.awt.EventQueue.isDispatchThread(), javafx.application.Platform.isFxApplicationThread()
Diagram: Swing