public static void register(JComponent input, final JComponent affectedComponent) {
    register(input, affectedComponent, true);
  }
public static void register(JComponent input, final JComponent affectedComponent)