Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //what you do
- small.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- System.out.println("hello");
- }
- });
- //with lambda
- small.addActionListener((ActionListener -> System.out.println("Hello")));
Advertisement
Add Comment
Please, Sign In to add comment