Re: Fullscreen on secondary monitor

Posted by elect on
URL: https://forum.jogamp.org/Fullscreen-on-secondary-monitor-tp4032833p4033311.html

Sven Gothel wrote
On 10/10/2014 04:59 PM, gouessej [via jogamp] wrote:
> You can use Screen.getAllScreens() to get all screens and the pick up the one
> that fits into your needs.

Probably not working in a 'big desktop' enviornment.

Here, you can query the monitors covered by the one screen,
and use those.

com.jogamp.opengl.test.junit.newt.mm.TestScreenMode01cNEWT

<http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01cNEWT.java;h=377c35ade46758f608aff329e5e9a9a6eb72121f;hb=HEAD#l129>

etc ..

~Sven



signature.asc (828 bytes) <http://forum.jogamp.org/attachment/4033310/0/signature.asc>
screen.getMonitorDevices() is null (screen isnt)

Edit: forget it, I didnt use screen.addReference(). Ok now screen.getMonitorDevices().size() returns 3! :)