TOKYO—Researchers at Japan’s National Institute of Advanced Industrial Science and Technology have developed an organic material that can be liquefied or hardened by shining different types of light on it. The result is an adhesive that can be used over and over again.