public static void onMouseDragged(Component component, final P1<Point> action) {
        component.addMouseMotionListener(new MouseAdapter() {
			public void mouseDragged(MouseEvent e) {
				action.e(e.getPoint());
			}
        });
    }