title: how to make a new action listener
body: <p>this code move text from text field to label by adding action listener in move button 
  now i want  delete implements action listener 
  and generate my own action listener in new class and still make the button move the text </p>
  
  <p>i don't how to really make  it please help :(</p>
  
  <pre><code>public final class Move extends JFrame implements ActionListener {
      private GridLayout gl;
      private JPanel jp;
      private FlowLayout fl;
      private JButton butMove;
      private JTextField txtFirst;
      private JTextField txtSecond;
  
      public void buildGUI() {
          this.setTitle("This is my moving JFrame");
          gl = new GridLayout();
          gl.setRows(2);
          gl.setColumns(1);
          this.setLayout(gl);
          jp = new JPanel();
          fl=new FlowLayout();
          jp.setLayout(fl);
  
          butMove = new JButton("Move");
          txtFirst = new JTextField("please enter a string",10);
          jp.add(butMove);
          jp.add(txtFirst);
          this.add(jp);
  
          txtSecond = new JTextField();
          this.add(txtSecond); 
          txtSecond.setEditable(false);
          //txtSecond.setBorder(new BorderFactory());
          // Border border = BorderFactory.createLineBorder();
          butMove.addActionListener(this);
          pack();
      }
  
      public GUI() {
          buildGUI();
      }
  
      public void actionPerformed(ActionEvent e) {
          String str = txtFirst.getText();
          txtSecond.setText("");
          txtSecond.setText(str);
          txtFirst.setText("");
      }
  }
  </code></pre>