Get all the monitors attached to the device, call Display.getMonitors()
import org.eclipse.swt.widgets.Display; public class MainClass { static Display display = new Display(); public static void main(String[] args) { System.out.println(display.getPrimaryMonitor().getClientArea()); } }