A man accused of murder had 'a long-standing problem controlling his anger' and a deep resentment against two men, a court has heard.