public static void onMouseRelease(Component component, final P0 action) {
        component.addMouseListener(new MouseAdapter() {
            public void mouseReleased(MouseEvent e) {
                if (e.getButton() == MouseEvent.BUTTON1) {
                    action.e();
                }
            }
        });
    }