Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // java6, java7
- jbutton.addActionListener(new ActionListener(){
- public void actionPerformed(ActionEvent e) {/*...*/}
- });
- // java8
- jbutton.addActionListener( (ActionEvent e) -> {/*...*/} );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement