Once they have had time to think about their actions and have apologised, move on and stop talking about the incident. Don’t go on like a broken record, it counteracts what you are trying to achieve.
Give your child a hug, tell him that you love him and move on with your regular activities.
Remember, that what a child will usually remember the effect of what their action has on you.
If they know that throwing a tantrum or not listening to you winds you up and you become angry as a result, then children being children will re-visit that scenario on many occasions just to trigger that reaction from you.
But if you show restraint in the face of your child's inappropriate behaviour, and calmly show him that you mean business, your child will soon get bored with trying to work you up and pay attention what you have to say.
So keep calm, and keep reminding yourself that it's not a power battle between yourself and your child, and that positive discipline will help mold your child into a responsible adult.