A bit hacky, but you can try creating a separate AWT frame, which is full-screen, and drop the handler into it. Usually for full-screen viewing you only need a frame with the size of the screen and without decorations (title bar, close buttons, etc.). The trick is you cannot "decompose" java.awt.Frame after it has been set to visible (even if you set the visibility to false, try to decompose, and then create the frame again), so bypassing this will just be a separate instance of Frame, already not decorated and with the correct dimensions, to which we discard the contents of the frame. We also need to inform that the evaluation processing is being updated.
Here is a quick sketch illustrating the idea (press "f" for full screen mode):
import java.awt.Frame; Frame fullScreenFrame; void setup(){ fullScreenFrame = new Frame(); fullScreenFrame.setUndecorated(true);
source share