Hi,
I have a simple class that extends PApplet. I then add the PApplet to a JPanel.
When I use size(100,100) it works fine. If I use size(100, 100, P3D) the PApplet appears in the bottom left of my JFrame. The JPanel is still at its correct location, though. Also the MouseEvents trigger at the right location.
1