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

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -