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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -