My question is: When handling events, (Such as when a button is clicked) Is it more effective to handle the event by implementing ActionListener into your class
And then to use the actionPerformed method?
OR, is it more effective to approach the event via lambda?
and then create a b1Click( ) Method, that handles the event?
(I know you can also create an Inner class that implements ActionListener, but I don't know if that's any better?)
Thanks for taking your time to read/reply! :P
And then to use the actionPerformed method?
OR, is it more effective to approach the event via lambda?
and then create a b1Click( ) Method, that handles the event?
(I know you can also create an Inner class that implements ActionListener, but I don't know if that's any better?)
Thanks for taking your time to read/reply! :P