JavaFX Controls in py5

Observation: Notice the difference in the background colors. My interpretation of this is that there are two potential canvases: one for drawing and one for javafx controls. One or the other winds up being used but not both at the same time. With Swing controls I have slid the default canvas down to create a vacant strip at the top and then added Swing components to the strip. I would like to use a similar technique here, but I’m not sure javafx controls can be added to the bare frame using frame.add(control). It seems that they can only go in a stage and that creates a whole new window.

Another Observation: this is what shuts down drawing
processing/core/src/processing/javafx/PSurfaceFX.java at master · processing/processing · GitHub line 88

        try {
          sketch.handleDraw();
        } catch (Throwable e) {
          // Let exception handler thread crash with our exception
          drawExceptionQueue.offer(e);
          // Stop animating right now so nothing runs afterwards
          // and crash frame can be for example traced by println()
          animation.stop();
          return;
        }

Interestingly the draw loop keeps right on going; if you add print(“x”) to draw() output shows up in the console.