They both refer to the smallest difference between two stimuli that can be detected, but a just noticeable difference is the smallest difference that can reliably be detected, whereas the difference threshold is the smallest difference that can be detected half of the time.