As you discovered, the Document.getText() takes a start and length not a start and end argument. I thought I'd provide an answer and a link to the JavaDoc for others reading your question who might not look in the comments.
As you discovered, theDocument.getText() takes a start and length, not a start and end argument. I thought I'd provide an answer and a link to the JavaDoc for others reading your question who might not look in the comments.
This was pretty annoying. 2 hours of debugging can save 10 minutes of reading,right? :) – Tempus Feb 23 '09 at 16:02 Definitely true.
And the libraries are sometimes inconsistent, causing the need to check the javadocs, as half of the libraries use start,end+1 and the other half uses start,length. Feh! – Eddie Feb 23 '09 at 17:02.
My guess with information is that the replaceSelection() call is throwing. There is not enough information here to fully answer this question.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.