Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public void setText(String t)Sets the text of this TextComponent to the specified text. If the text is null or empty, has the effect of simply deleting the old text. When text has been inserted, the resulting caret location is determined by the implementation of the caret class.
This method is thread safe, although most Swing methods are not. Please see Threads and Swing for more information.
Parameters:
t - the new text to be set
See Also:
getText(int, int), DefaultCaret