Remove a particular line of text from JTextArea contains a number of lines
793886Sep 16 2008 — edited Sep 18 2008Hi,
How can I delete a particular lines of text from a number of lines of text in JTextArea?
Here is my situation,
I have JTextArea where the output results are printed out.
I am using the same JTextArea to show the Input Values, which are imported from an input file.
While I ask for accumulate the results (check box set for accumulating the results), whatever the text printed on the JTextArea will be displayed there, even after any number to iteration happened.
But the problem that, since I am using the same JTextArea for displaying the input parameter, the accumulate will collect those input values along with the output results. I don't want the input values.
Here I am facing the issue. I need to remove those input parameters displayed on the JTextArea.
One solution that, collect the previous results before import the input values and add it again to the JTextArea after clearing JTextArea, falls as not a better solution for me.
I am lookin for some Java inbuilt method.
So please share any answers.