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 8352 - Can not add component
Summary: Can not add component
Status: CLOSED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: PC All
: P4 major (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-10 11:08 UTC by _ pkuzel
Modified: 2003-07-01 15:24 UTC (History)
1 user (show)

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 _ pkuzel 2000-11-10 11:08:38 UTC
Manual citation:
"To add a component using the Explorer:

 1 Under the Filesystems tab in the Explorer, find the class of the bean you
want to add.
 2 Right-click on the class and choose Copy from the contextual menu.
 3 Choose Paste from the contextual menu of either the Component Inspector or
the Form Editor."

I can not accomplish the 3rd step.
Besides what does "component" mean? (extends awt.Component)
Anyway it does not work for Component subclasses as well.
Comment 1 _ pkuzel 2000-11-10 11:13:59 UTC
I ommited to mention build.
[boston-1141]
Comment 2 _ pkuzel 2000-11-10 11:39:59 UTC
Try to :
  New -> Swing -> JPanel
Then use apply above.
Comment 3 Tomas Pavek 2000-11-10 16:40:59 UTC
Only compiled classes can be copyed to form (generaly: anything having
InstanceCookie, or form's internal components). Maybe the documentation should
be corrected slightly to use term "compiled class of the bean".
Is this that case (JPanel was not compiled)?
Comment 4 _ pkuzel 2000-11-13 16:26:59 UTC
YES, documentation should mention that it MUST be compiled.
Comment 5 Jan Stola 2000-11-13 17:38:59 UTC
SUMMARY: In the usersguide in the section Designing Java GUIs|
Working With Components|Adding a New Component there is the following
paragraph

To add a component using the Explorer:
1. In the Explorer, find the class of the form component or bean.
2. Right-click the class node and choose Copy from the contextual menu.
3. Choose Paste from the contextual menu of either the Component Inspector
   or the Form window.

It should be mentioned in one of these steps that this class have to be
compiled.
Comment 6 Patrick Keegan 2001-04-24 14:53:25 UTC
fixed in NB 3.2 and the trunk.
Comment 7 Quality Engineering 2003-07-01 15:20:54 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 8 Quality Engineering 2003-07-01 15:24:53 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.