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 166195

Summary: Error when copying components between forms
Product: guibuilder Reporter: fedesaravia <fedesaravia>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description fedesaravia 2009-05-28 15:56:55 UTC
Greetings, 
I've found an error in the IDE's GUI editor, when I copy buttons from one form to another and those buttons have some 
action asociated with it. In the running software, the action calls a method within the same class, but if I double click 
the button or try to edit the action's method in the IDE, it automatically opens the class where the button was originally 
created. I'll give an example for better understand:
I create form1, with JButton1 asociated to method public void save()
I then create form2, and copy JButton from form1.
In the running application, clicking form2's button it calls form2 save method, but in the IDE, if I try to edit form2 
button action, it automatically opens save method on form1.
Comment 1 Jan Stola 2009-05-28 16:52:27 UTC
*** Issue 166196 has been marked as a duplicate of this issue. ***
Comment 2 Jan Stola 2009-10-19 14:02:07 UTC
Reproducible. The problem seems to be ProxyAction.copy(). It doesn't handle copying into other forms correctly.