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 116896

Summary: Palette Manager cannot instantiate java beans that extends JFrame
Product: guibuilder Reporter: xsoteria <xsoteria>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: /var/log/Messages.log

Description xsoteria 2007-09-27 01:39:13 UTC
I created innocentFrame.java from the "New JFrame Form" in the editor. Add nothing to it, save it, and add it to the
palette manager using add from the library. When the innocentFrame is dragged to the design view of another JFrame, an
error message is shown: "The component cannot be instantiated. Please make sure it is a javabean.".
Comment 1 xsoteria 2007-09-27 01:40:42 UTC
Created attachment 49632 [details]
/var/log/Messages.log
Comment 2 Tomas Pavek 2007-09-27 10:41:12 UTC
The JFrame form has the defaultCloseOperation property set to EXIT_ON_CLOSE. Such a frame can't be instantiated in the 
IDE because it could exit the entire JVM. For reusable frames set the property to something else, e.g. DISPOSE.

*** This issue has been marked as a duplicate of 108282 ***