title: jbuttons and a jtextfield that has an action listener
body: <p>I have a keypad made up of jbuttons and a jtextfield that has an action listener. When I press the button the number shows in the textfield but the next number overwrites it. Could anyone tell me how to append the text to the length 13 numbers and when it get's there to carriage return.</p>
  
  <p>If I use the keyboard to enter numbers I can enter a String of numbers but not from the buttons.</p>
  
  <p>I am using:</p>
  
  <pre><code>    JButton buttonNo2 = new JButton("2");
      buttonNo2.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
              textfield.setText("2");
          }
  
  buttonNo1.setBounds(11, 18, 50, 50);
      keyboardPanel.add(buttonNo2);
      buttonNo1.setForeground(Color.BLUE);
      buttonNo1.setFont(new Font("Perpetua", Font.BOLD, 20));
  </code></pre>