isolating the viewable text in a scrollpane
Hi,
I have a JScrollPane, JTextArea, and DefaultStyledDocument.
My problem is that JTextArea.getText() is too much. I would like to read only the viewable text.
I have been messing with getViewport, AccessibleContent, getText(int, int), loads of very hopeful guesses, and I'm just not succeeding!
If it is solved, the viewable text will be edited, so knowing its start and end position in the document might be important.
Thanks very much for reading!

