The nut meat is edible, of course, and the nuts have also been used to make natural dyes. Juglone, a compound present in black walnuts, currently is being studied as a possible cancer-preventing substance.