Processing Canvas in JAVAFX as FXnode

Hello, Is there a way how to make your existing PApplet as FXNode in JavaFX scene ?

On mobile, but does this help?

1 Like

Also an old related discussion with @Kevin on Stackoverflow

Note: that answer no longer works for Processing 3 – it is for Processing 2.

See my Stack Overflow answers here (I see it’s been linked already in this thread) or here for how to incorporate Processing as Node within a JavaFX stage/scene.

An example project (pictured below), integrating the two, can be found here (github repo).

Embedding a Processing drawing within a swing-node within a JavaFX stage as suggested here does not seem to work.