!752 p { final JWindow window = showAnimationInTopRightCorner("#1005611", "Please click in the area you would like to select"); // TODO: onClosing(window, "trackOneClick_cancel"); trackOneClick(voidfunc(Point p) { window.dispose(); final ImageSurface is = imageSurface(shootScreen2()); is.setZoom(4); JFrame frame = showCenterFrame("Please select area", jScrollPane(is)); setFrameBounds(frame, centerScreenPart(0.75)); addToWindow(frame, imageSelectionDepend(is, jbutton("OK", r { Rectangle r = is.selection; if (r != null) { disposeWindow(is); showAnimation("#1005611", "You marked " + r, 3); pointArrowsToArea(r, 5); } }))); is.centerPoint(p); }); }