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.
Description: The number of bean instances created in design mode seems to be more than required. As part of investigations into 4519199, it was noticed that more otject instances than expected are created. Support I have 2 beans A and B and I have an open project with a JFrame. If I drop an A into the frame I get 2 instances of A created. If I then drop a B into the frame, I get 2 instances of B and 1 of A created. If I then drop another A into the frame, I get 3 instances of A and 1 of B created. If I then drop another B into the frame, I get 3 instances of B and 2 of A created. My conclusion from this is that I get once instance of my new object created, and then each of all of the objects is 'recreated'. This certainly seems to be undesirable, and I suspect would impact the performance of creating a large-scale GUI. Work Around: None Evaluation: Moving to Issuezilla A comment.
Moving to form
In FFJ 3.0 (NetBeans 3.2), the whole form "view" in the designer window is recreated with each change - so all instances are created again and again after any modification of the form. It is a bit inefficient, but it has no serious impact on performance, even for large forms (the code generation is much bigger problem here - see issue 11441). The designer update behaviour was improved in NetBeans 3.3, so no unnecessary instances are created now...
Resolved for 3.3.x or earlier, no new info since then -> closing.