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 66313 - Removing component from form
Summary: Removing component from form
Status: RESOLVED DUPLICATE of bug 57552
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2005-10-08 13:44 UTC by kovica
Modified: 2005-10-19 14:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description kovica 2005-10-08 13:44:32 UTC
If I remove a component from form (right click and delete) then in source code
all code that was written for various events on this component is also removed.
Comment 1 Jan Stola 2005-10-10 08:32:19 UTC
This is as designed. See also issue 57552.
Comment 2 kovica 2005-10-10 09:45:04 UTC
Hmm. sorry to say this, but I think that is a bad design. At least a dialog
could appear to inform a user. And btw I couldn't Undo this. :((
Maybe (I don't remember correctly), I did a save, changed to source and back to
design again and when I realized I lost couple of 100s lines of code it was too
late :(((
I'm not happy with this design at all. This is why I am reopening this.
Comment 3 Jan Stola 2005-10-10 09:48:54 UTC

*** This issue has been marked as a duplicate of 57552 ***
Comment 4 Tomas Pavek 2005-10-19 14:48:38 UTC
Note to undo - you must be in the form designer, not in the source editor, then
undo should work - even if you saved or did some additional changes in the
source editor.