static Point enclosingViewPosition(Component c) { JScrollPane sp = enclosingScrollPane(c); ret sp == null ? null : swing(func -> Point { sp.getViewport().getViewPosition() }); }