I\'m trying to make input nameField appear in a Label called label1 after a Button called button1 is clicked
nameField
Label
label1
Button
button1
the getText method returns a String, while the setText receives a String, so you can write it like label1.setText(nameField.getText()); in your listener.
getText
setText
label1.setText(nameField.getText());