the getText method returns a String, while the setText receives a String, so you can write it like label1.setText(nameField.getText()); in your ...
確定! 回上一頁