G4P full screen issue with Java2D renderer

We are using G4P to create a second window. We were wondering if there is a way to make GWindow fullscreen using JAVA2D as the renderer .

We have our code as below:
window1 = GWindow.getWindow(this, "NoRILLA Template Projector", touchscreenWidth, 0, projectorWidth, projectorHeight, JAVA2D);
This shows the title bar and we cannot make it full screen.

If we use P2D (using the code below) we can get full screen, but then the performance gets very slow and the code gets stuck.
window1 = GWindow.getWindow(this, "NoRILLA Template Projector", touchscreenWidth, 0, projectorWidth, projectorHeight, P2D);

We want to use JAVA2D with full screen so that we get better performance. Please let us know if there is a way to do this.

Thank you in advance!

Unfortunately not. G4P was created before Processing created the fullscreen method.

1 Like

So what do you think would be the fastest/most efficient way to create a second window in full screen in Processing 3? We are doing some computer vision rendering so need a fast method…

Thank you!

If you are trying to use GWindow full screen what are you using Processing, main display for?

Can you not swap them, use the Processing window for fullscreen and GWindow for something else?

1 Like