03-15-2007, 02:02 PM
Code:
jButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
jTextField1.setText(jTextField.getText());
jTextField.setText("");
}
});