Does anyone know how to make a Swing application to utilize two monitor screens ? I have a laptop which is hooked up with a monitor via ducking stage. But I do not know why the following code could not recognize the existence of the two monitor screens:
GraphicsEnvironment ge =GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
System.out.println("Number of Monitors: "+gs.length);
Number of Monitors: 1
Jay