A patient told a doctor he could get guns and grenades and felt like shooting two people, the High Court heard today.
Prosecutors claimed Hugh Boyce made the disclosure after previously stating that he was going to kill himself or someone else.
A day earlier he is alleged to have breached a non-molestation order by staring at an ex-partner and shouting obscenities at her.
Boyce (23) of Watsonville, Lurgan, Co Armagh, is accused of flouting the prohibition at a car park in Banbridge last Tuesday.
It was claimed that a day earlier he phoned a supervising officer on a scheme for reducing offences and made the suicide comment.
He was taken to Craigavon Area Hospital where the alleged conversation with a doctor was then relayed to police.
Prosecution barrister Nicola Auret alleged: "He told the doctor he felt like shooting two specific people and that he had access to guns and grenades."
Boyce left the hospital but was detained later.
Opposing his bail application, Ms Auret said: "Police do have concerns about this man's present mental health."
Boyce denies the allegations that he breached his non-molestation order, claiming he left the car park without any gesture or comments.
A defence barrister argued that he had been drunk when the threat remarks were allegedly made.
"Any general threat made about weapons was an empty boast," the lawyer said.
"He was simply struggling and felt he needed medical attention for alcohol abuse."
However, Mr Justice Gillen refused bail due to the risk he associated with releasing him.
The judge commented: "I think this man is in a dangerous state of mind where these things all form a pattern."