* The related screen will be determined automatically based on the
* center of the rectangle and default to screen 0 in case the center is
* outside of all available screens.
*/
public DesktopScreenRegion(int x, int y, int width, int height) {
super(new DesktopScreen(0));
setX(x);
setY(y);
setWidth(width);
setHeight(height);
DesktopScreen _screen= DesktopScreen.getScreenAtCoord(x+width/2,y+height/2);
if (_screen!=null) {
this.setScreen(_screen);
}
}