JPBE018: Adding ActionListener to implement Reset button

Published: 02 December 2020
on channel: Golden Thumb | Living Museum of Learning
605
4

Eclipse's auto-complete feature creates an anonymous class of interface ActionListener for us.

resetBtn.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
game.reset();
panel.repaint();
}
});

GitHub repo:
https://github.com/zhijunsheng/connec...


On this page of the site you can watch the video online JPBE018: Adding ActionListener to implement Reset button with a duration of hours minute second in good quality, which was uploaded by the user Golden Thumb | Living Museum of Learning 02 December 2020, share the link with friends and acquaintances, this video has already been watched 605 times on youtube and it was liked by 4 viewers. Enjoy your viewing!