I can't say this is true, but maybe it depends on the order in which you added? I mean, if you add the actionlistener first, then the actionperformed may execute first. If you add the mouselistener first, then the mouseclicked may execute first. That's just my guess, but I could very well be wrong.