public static void convertPointFromScreen(Point pt, Component component) {
		while (component != null) {
			pt.x -= component.getX();
			pt.y -= component.getY();
			if (component instanceof Window) {
				break;
			}
			component = component.getParent();
		}
	}