-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.1.3
-
None
-
x86
-
windows_95
Name: rlT66838 Date: 08/07/97
The behavior of TextComponent.getSelectedText()
( and getSelectionStart/End ) is different on NT/95
vs UNIX ( works fine on Solaris ).
In NT/95 these functions seem to count the \r's
as well as the \n's at the end of each line when
indexing into the component. However, the \r's are
not returned in the string genereated by getText().
The workaround code below is from my application
which uses these methods.
======================================================================
- duplicates
-
JDK-4072264 getSelectedText, getSelectedStart/End in TextArea class returns wrong
-
- Closed
-