Daniel Duffy, 22, of James Street, appeared via video link from Maghaberry charged with criminal damage and breach of a non-molestation order.
The incident occurred on September 4, last year, police were called by Duffy’s then partner after he smashed the window of her house in Union Street, while her young child was home with her.
Police found the defendant nearby in Lurgan and during interview he made no comment.
Defense counsel claimed that the relationship had now ended but at the time it was “falling apart”.
Court heard that Duffy had been engaged in abusive text messaging with the injured party previous to the attack.
The defence told the court that he has spent three months on remand and had no previous convictions.
Deputy District Judge Austin Kennedy stated that this form of domestic violence was “very frightening” to the victim and deserved a custodial sentence.
Duffy was sentenced to three months in prison.