public void setScene (Scene newScene)

Attaches a Scene object to display in this FXCanvas. This method must called either on the JavaFX JavaFX application thread (which is the same as the SWT event dispatch thread).

Parameters:
newScene    a scene to display in this FXCanvas

See also:
javafx.application.Platform.isFxApplicationThread()