Re: Fullscreen on secondary monitor

Posted by Sven Gothel on
URL: https://forum.jogamp.org/Fullscreen-on-secondary-monitor-tp4032833p4033312.html

On 10/10/2014 05:23 PM, elect [via jogamp] wrote:

>     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>
>     <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%3E>
>
>     etc ..
>
>     ~Sven
>
>
>
>     signature.asc (828 bytes)
>     <http://forum.jogamp.org/attachment/4033310/0/signature.asc>
>     <http://forum.jogamp.org/attachment/4033310/0/signature.asc%3E>
>
> screen.getMonitorDevices() is null (screen isnt)
use above demo please, maybe your screen hasn't been created yet ?

~Sven



signature.asc (828 bytes) Download Attachment