What is the setText() method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the setText() method?
Rating:
The setText() method is a method of the StringItem class. It is used to change the text associated with the StringItem instance. The general syntax of this method is as follows:
Here, the str parameter specifies the text to be displayed with the instance of the StringItem class.
Rating:
Was this information helpful?
Other articles
- What is the Spacer class?
- What is the getAppProperty() method?
- What is the setTimeout() method?
- What is JNI?
- What is the setTransform() method?