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 4120 - Editor sometimes guards blocks that should not be guarded
Summary: Editor sometimes guards blocks that should not be guarded
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P1 major (vote)
Assignee: Jon Koplin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-09-30 18:16 UTC by Jon Koplin
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Koplin 1999-09-30 18:16:41 UTC
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.
Comment 1 Quality Engineering 2003-07-02 15:41:38 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.