SyntaxFix
Write A Post
Hire A Developer
Questions
in your action performed method, call:
label1.setText(nameField.getText());
This way, when the button is clicked, label will be updated to the nameField text.