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 - Cursor position in new generated method
Summary: Cursor position in new generated method
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-04 14:26 UTC by Jiri Vagner
Modified: 2008-05-05 09:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Actual-cursor-position.jpg (15.32 KB, image/jpeg)
2007-04-04 14:29 UTC, Jiri Vagner
Details
Better-cursor-position.jpg (14.00 KB, image/jpeg)
2007-04-04 14:30 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
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