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 - Error when copying components between forms
Summary: Error when copying components between forms
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 166196 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-28 15:56 UTC by fedesaravia
Modified: 2009-10-19 14:02 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 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.