// TODO: z-order often not correct static Window locationToWindow(Point p) { for (Window window : Window.getWindows()) if (window.isShowing() && boundsOnScreen(window).contains(p)) ret window; null; }