I have jtextarea with some texts. I use java highligher to highlight some texts on this jtextarea. I want to print the contents of this text box in another text box with selected texts. Is it possible? Or is there a way to get only the selected text inside jtextarea?
Nuwan source share