Originally posted by Ash Kondhalkar:
If I have a button on the frame and I have added an actionListener and I have set the action using setAction as well. Which will be called first actionPerformed in ActionListener class for in Action class? Please let me know.
Java doesnt give any kind of guarantee about the sequence in which the registered listeners are notified in case of event generation.
Simplest thing for you would be to out println statements in both and see which is printed first.