5.3.2.1.3.2   Code for the Clear Button The function of the Clear button is to clean up all the content in the two TextFields,FirstTextField and LastTextField allow the user to enter a new name. Double-click on the Clear button to open its event handler, and enter the code shown in Figure 5.12 into the event handler. FIGURE 5.12   The code for the ClearButtonActionPerformed() event handler. FIGURE 5.13   The code for the ExitButtonActionPerformed() event handler. When this button is clicked by the user, the setText() method is executed with a null as the argu-ment to clean up the three objects’ contents, FirstTextField, LastTextField and FullNameLabel. 5.3.2.1.3.3   CodeRead More →