For your situation, I would:
1) Get a panoramic X-ray which will show your jaw joints. Sometimes joint derangement can be seen on the pan (normally, the condyles should look smooth and round-- Deranged condyles will have a duckbill shape).
2) Ask your dentist which condition is it that is affecting you: Is it a muscular condition (myofascial pain) or is it something with the joint itself (the clicking, which may be corroborated with any joint derangement visible on the pan), or both.
3) Your dentist also needs to assess what kind of clicks it is. Is it a grinding noise (which is a signal that something is definitely wrong), is the clicking at the same place when you open or close, or is it at different places when opening and closing (disc derangement)?
4) Ask your dentist if your teeth has any signs of excessive wear, which would be a clue that you subconsciously grind your teeth during sleep or during times of stress. Such parafunction can actually cause TMD if severe enough.
Appropriate treatment will depend on the answers to the above questions.
Yes, sometimes Temporomandibular Disorder can be stress-related. Stress management would be a good place to start. Only use pharmacological means or surgical intervention as a last resort.
HTH!