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.
1. Create a class in the explorer by clicking the right mouse button New From Template -> SwingForms -> JDialog. 2. When the Form editor has popped up, add a JButton from the Component bar to the SOUTH part of the JDialog. 3. Right click on the JButton, open Properties, go to Events, and add an ActionEvent handler. 3. a) Scroll the source code to the event handler. 4. Delete the freshly created handler by clicking into the field in the Events tab, that shows the name of the handler, and deleting it. Say yes to the confirmation question. 4. a) Notice that at the place where the handler function was in the source code, there is now a single empty guarded line! 5. add the handler function again from the still open Events tab. 5. a) Now, we have a completely guarded handler function (or at least, I do): It can`t be edited, since even the "//Add your code here" comment is guarded.
Resolved for 3.4.x or earlier, no new info since then -> closing.