The setTitle() method is a method of the Displayable class. It is used to change a string associated with a given TextBox. The general syntax of this method is as follows:
Here, the str parameter defines the caption or label to be displayed with a given TextBox object.
Click here to get free scmad SCMAD exam practice questions. Become SUN SCMAD Mobile Application Developer certified.