Anyway, can I control the order in which events are fired in my Swing app? For example, I have a MouseListener and an ActionListener for a component. Can I make the MouseListener always fire before the ActionListener?
It seems to me that if I add a MouseListener in front of the ActionListner, I just pray that they shoot in that order.
Now I understand that coding in this way is bad practice and that you should not count on the order in which events are triggered, but for this situation I meet, it is necessary.
thank
source
share