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.
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.
Fixed using Document API to get right position.