/**
Khalid
*/
package org.sikuli.slides.utils;

import java.awt.Dimension;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.awt.Toolkit;

public class MyScreen {
	
	public static Dimension getScreenDimensions(){
		return Toolkit.getDefaultToolkit().getScreenSize();
	}
	
	public static Rectangle getScreenBounds(){
		GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
		GraphicsDevice defaultScreen = ge.getDefaultScreenDevice();
		return defaultScreen.getDefaultConfiguration().getBounds();
	}
}

@@ -572,10 +572,552 @@
 s();%0A%09%7D%0A
+%09%0A%09/**%0A%09 * Returns the total width of the connected screens.%0A%09 * @param currentScreen the screen id for the current screen to get the total width for.%0A%09 * @return the total width of the connected screens.%0A%09 */%0A%09public static int getTotalScreenWidth(int currentScreen)%7B%0A%09%09GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();%0A%09%09GraphicsDevice %5B%5D devices = ge.getScreenDevices();%0A%09%09int baseWidth = 0;%0A%09%09for(int i=0; i%3CcurrentScreen; i++)%7B%0A%09%09%09baseWidth += devices%5Bi%5D.getDisplayMode().getWidth();%0A%09%09%7D%0A%09%09return baseWidth;%0A%09%7D%0A
 %7D%0A

add get the total width of all connected screens