We are about to switch to a new forum software. Until then we have removed the registration on this forum.
It used to be that a processing 2 applet could be added to a JFrame because it was inherited from Applet which inherits from JPanel. Now it's not.
I see this long discussion: https://forum.processing.org/two/discussion/12774/embedding-papplet-in-java-jframe
but I do not see how to create a JFrame in Java, and add a PApplet as a component. Particularly important is that the PApplet be able resize when told to do so by the layout manager.
Is there any way to do this without using runSketch? It's a real hack to have to have the drawing area create the window.