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.
It would be nice if the java editor had the ability to order and/or reorder the import statements. Eclipse has this feature. It's pretty nice. You could have the ability on sort order (ie, java.*, javax.*, org.*, or reverse) and then by alphabetical. I envision this perhaps being a configurable option under the import tool, as well as an available menu item in the java editor's context menu's 'Tools' submenu.
So, such a feature should be done in the java module. Maybe this can be done by import managment tool?
AFAIK, import statement ordering is implemented in the dev trunk for both Import management tool and FastImported import statements.
Set target milestone to TBD
For people that can't wait for 4.0, here's a patch for Netbeans 3.6 that will always sort the Fast Import list alphabetically. Before, it was only sorted when "Import package" was chosen.
Created attachment 16191 [details] Patch for always sorting fast import list.
*** Issue 31274 has been marked as a duplicate of this issue. ***
At least in 7.4 at Options|Editor|Java|Imports|Import Layout the ordering of imports can be configured. So resolve as worksforme.