-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.1.3
-
None
-
x86
-
windows_nt
Name: rlT66838 Date: 07/16/97
Using setCaretPosition() and getCaretPosition()
in TextArea's doesn't work correctly in NT4.0
and JDK1.1.3.
If I have a panel with text:
-------
Line1
Line2
Line3
------
And would call
setCaretPosition(999)
The cursor would remain 3 chars apart the end
of the panel. If I would have 10 lines
it would remain 10 lines apart and so on...
Positions are also mixed in other lines by
the line numner of the current line.
It seems that all line changes are counted twice
and the function that counts total number of
chars only counts them once.
======================================================================
- duplicates
-
JDK-4072264 getSelectedText, getSelectedStart/End in TextArea class returns wrong
- Closed