What is the basic difference between jTextArea.setText() and jTextArea.append() methods from examination point of view?
Asked
Active
Viewed 1,072 times
-3
Mureinik
- 297,002
- 52
- 306
- 350
Garvit Sharma
- 11
- 6
-
2What's the basic difference between checking the documentation and asking something on SO that could easily be determined from the documentation? -1 – Andrew Thompson Dec 27 '16 at 08:20
-
I'm voting to close this question as off-topic because the answer is easily determined by reading the documentation. – Andrew Thompson Dec 27 '16 at 08:20
1 Answers
2
setText replaces the text in the text area. append adds a string to the end of the existing text.
Mureinik
- 297,002
- 52
- 306
- 350