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 99985

Summary: Cursor position in new generated method
Product: guibuilder Reporter: Jiri Vagner <jvagner>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Actual-cursor-position.jpg
Better-cursor-position.jpg

Description Jiri Vagner 2007-04-04 14:26:35 UTC
After creating new handler for button ...

Button -> Events -> Action -> Action Performed

... it generates method ...

private void myButtonActionPerformed(java.awt.event.ActionEvent evt) {}

... and cursor is at the beginning of line. And in most cases I must move cursor
right, select TODO comment, delete comment and write code and it's annoying. 

What about setting cursot at the end of line with selected TODO comment? User
will just start typing own code and dummy TODO will disappear.
Comment 1 Jiri Vagner 2007-04-04 14:29:14 UTC
Created attachment 40438 [details]
Actual-cursor-position.jpg
Comment 2 Jiri Vagner 2007-04-04 14:30:58 UTC
Created attachment 40439 [details]
Better-cursor-position.jpg