I have 2 jbuttons which is the jButton1 and jButton2 and also have jTextField1. Now, i want to happen that whenever i set a text in my jTextField1 and press the jButton1, jButton2 text will change to jTextField1 text. But the text will be nothing in the button like blank text "". Please help thanks :(
Heres my code:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
jButton2.setText(jTextField1.getText());
}