setText(String s) is a method of the TextField class and changes the TextField to the argument. So text.setText("Button Clicked " + numClicks + " times") would change the text to something that will will tell us how many times the button is clicked.