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 - Palette Manager cannot instantiate java beans that extends JFrame
Summary: Palette Manager cannot instantiate java beans that extends JFrame
Status: RESOLVED DUPLICATE of bug 108282
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-27 01:39 UTC by xsoteria
Modified: 2007-09-27 10:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
/var/log/Messages.log (13.96 KB, text/plain)
2007-09-27 01:40 UTC, xsoteria
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***