Excuse me, can the jTextArea class delete a row of data.
For example, the data inside
132
231
125
134
321
How can I delete the line "134"?
Thanks for a piece of code. anxious
Waiting online
By the way, if you just want to implement this function, you can clear the textarea first, then create a new string, delete that line in the string, and then settext() in the textarea.
If you need to update such a string of String in real time, I think it would be more appropriate to use JList.
You can store the data in a List, and then let JList update the content in the List in real time. You only need to add or delete data from the List.