int width= 1024; int height= 796; return new Rectangle (0, 0, width, height);
MacRect bounds= new MacRect(); int bitmapHandle= OS.NewBitMap((short)0, (short)0, (short)0); int bitmap= OS.DerefHandle(bitmapHandle); OS.GetQDGlobalsScreenBits(bitmap); System.out.println("rowbytes: " + Integer.toHexString(OS.getRowBytes(bitmapHandle))); OS.GetPixBounds(bitmapHandle, bounds.getData()); Image.disposeBitmapOrPixmap(bitmapHandle); return bounds.toRectangle();
public Rectangle getBounds () {	checkDevice ();	/* AW	int screen = OS.XDefaultScreen (xDisplay);	int width = OS.XDisplayWidth (xDisplay, screen);	int height = OS.XDisplayHeight (xDisplay, screen);	*/	int width= 1024;	int height= 796;	return new Rectangle (0, 0, width, height);}