Posted by
Daniel Avila on
Jan 14, 2013; 6:01am
URL: https://forum.jogamp.org/GLWindow-tp4027817.html
I've got a multi-monitor setup, and my goal is place a single GLWindow on each monitor in full-screen mode. I've gone through most of the test cases, which demonstrate how to bring up a GLWindow on the main monitor:
GLCapabilities caps = new GLCapabilities(GLProfile.getDefault());
Display display = NewtFactory.createDisplay(null);
Screen screen = NewtFactory.createScreen(display, 0);
GLWindow window = GLWindow.create(screen, caps);
window.setFullScreen(true);
window.setVisible(true);
Now, I've tried every combination under the sun to get a GLWindow to come up on some other monitor besides the main one, without success. What is the magic I am missing?
As a reference, the code below represents the SWING/AWT equivalent of what I am trying to do with NEWT:
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
for (GraphicsDevice dev : env.getScreenDevices())
{
JFrame frame = new JFrame();
// add components to the frame, formatting, etc.
dev.setFullScreenWindow(frame);
}
Part of this is so I can provide Brandon with a proper testcase for this
GLG2D issue.
Here is my environment:
1) Window 7 Professional x64
2) jdk1.7.0_06
3) eclipse 4.2.1.v201209141800
4) jogl.README.txt:
This is build version 2.0-b66-20121101, based on:
branch rc
commit 502847f59ef01c78a85e4ee5453a09d9b83d9a5e
Thanks for the help : )