Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: diva manroe
Added: May 27, 2021 3:14 AM
Views: 372
Tags: no tags
  1.     public ActionListener createAction(JButton button){
  2.         ActionListener al = new ActionListener() {
  3.             @Override
  4.             public void actionPerformed(ActionEvent e) {
  5.                 // set Action
  6.             }
  7.         };
  8.                 return al;
  9.     }