This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 24647 - goTo(String s) goes to the beginning of the next line
Summary: goTo(String s) goes to the beginning of the next line
Status: RESOLVED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Jellytools (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-11 14:25 UTC by Oleg Khokhlov
Modified: 2002-07-19 15:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Khokhlov 2002-06-11 14:25:16 UTC
The description of the 'goTo(String s)' says that
this method "Goes to the beggining of line
specified by String parameter."
But cursor is placed to the beginning of the next
line.
When I write:
   editor.goTo(string1);
   string2=editor.getLine();
I expect that string1 will be equal to string2 but
they are different.

Maybe it's caused by using getLine() method in the
goTo(String s) method.

W2K SP2, JDK 1.4.0, trunk.
Comment 1 Jiri Skrivanek 2002-06-14 12:25:27 UTC
Fixed using Document API to get right position.