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.
In the Filesystem browse when expanding a node of a file, NB should either disallow or prompt the user when the user tries to delete the class that corresponds to the file. For example, expanding node for A.java shows class A. If you delete the class A, NB deletes all the code in the source file except for the import statements up top. This basically erases the file. A user (like I did myself) may think that by deleting the class, you are deleting the .class file. However, this actually causes your file to be almost deleted. This is a special case, where the class being deleted is the same as the file. This special case should either be disallowed or give a warning prompt to the user.
reassign to Tim, new owner of AWT/Swing
Refiling as java/ui - this is not a core awt/swing issue.
The UI now prompts user. Also if user accidentally deletes the class the change can be undone. The class node under the file node now does not contain the word "class" so it should be less confusing.
Reorganization of java component