Welcome to Healthcaremagic.
The pain in the jaw joint could be due to inflammation in the joint.A detailed examination would be necessary to identify the exact cause for such inflammation.
node enlargement could secondary to the jaw inflammation
.The lymph node will regress when the jaw inflammation is treated.
Wish you good health.