java - Where is the actionperfomed() method called? -


i'm java beginner , come down work interfaces, want know happens. suppose example actionlistener interface.

all know interfaces is, forces implement methods given interface. don't get, actionperformed(actionevent e) method called. , there simple examples show me happens in background? anyway.

in case of jbutton, superclass abstractbutton calls actionperformed method through method fireactionperformed protected method. if check source code you'll see constructs actionevent object , calls actionperformed using argument.


Comments

Popular posts from this blog

python - Overwriting the save method of a Django model -

java - how to browse all messages from 2 different MQQueue in the same function? -

java - From File[] files to directory -