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.
Product Version: NetBeans IDE Dev (Build 200706270025) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Description: ============ have J2se project 1. create two frames 2. build the project 3. then try to insert one frame into other one - exactly - Drag it from project win and try to drop it in in other one opened in design. then warning msg is opened and in cmd there an exception is thrown StackTrace: ========== SEVERE: Illegal attempt to exit early org.openide.ErrorManager$AnnException: msg at org.openide.ErrorManager$AnnException.findOrCreate(ErrorManager.java:839) at org.openide.ErrorManager$DelegatingErrorManager.annotate(ErrorManager.java:628) at org.openide.ErrorManager.annotate(ErrorManager.java:430) at org.netbeans.modules.form.MetaComponentCreator.showInstErrorMessage(MetaComponentCreator.java:1317) at org.netbeans.modules.form.MetaComponentCreator.initComponentInstance(MetaComponentCreator.java:1305) at org.netbeans.modules.form.MetaComponentCreator.createVisualComponent(MetaComponentCreator.java:753) at org.netbeans.modules.form.MetaComponentCreator.addVisualComponent(MetaComponentCreator.java:732) at org.netbeans.modules.form.MetaComponentCreator.createAndAddComponent2(MetaComponentCreator.java:335)
Created attachment 44454 [details] 108282
The frame can't be instantiated because it has setDefaultCloseOperation set to WindowConstants.EXIT_ON_CLOSE. Exiting on close makes it the main frame of an application rather than a reusable component that could be added into another form. But still we could perhaps identify this case and show a better error message.
*** Issue 116896 has been marked as a duplicate of this issue. ***