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.
Double click a method name in Navigator. You may end up with the caret on the last visible line in the editor, with that being the method signature. It ought to scroll as much as possible into view.
The code in java/source ends up in Line.show anyway. I thnk that this issue shouled be solved there. If so this will work for any editor not only the Java editor, which is the desired state. The ideal algorithm would be to try to show the line in about 1rd of the editor window I think.
This could probably be solved well enough without too much computation or complexity... Rectangle r = x.modelToView (charOffset); r.height += 40; //pick a reasonable integer, or *= by some factor - r should be one line's height anyway editor.scrollRectToVisible(r);
Fixed as outlined by Tim: openide/text/src/org/openide/text/CloneableEditorSupport.java,v1.40