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 14208 - No room for element exception
Summary: No room for element exception
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 12364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-08-06 09:37 UTC by Tomas Hurka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception stacktrace (3.89 KB, text/plain)
2001-08-06 09:38 UTC, Tomas Hurka
Details
Testcase (20.00 KB, application/octet-stream)
2001-08-06 09:41 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2001-08-06 09:37:32 UTC
(Originaly reported by Glenn Holmer gholmer@wi.rr.com on nbuser@ list  see:
http://www.netbeans.org/servlets/ReadMsg?msgId=121358&listName=nbusers )

I created an event listener interface and an event, then right-clicked
"Bean Patterns" on my component and selected "New Multicast Event Source."
In the dialog that came up, I selected "Generate EventListenerList
implementation", "Generate event firing methods", and "Pass event as
parameter."  When I clicked OK, I got the add and remove selector listener
methods and the EventListenerList field, but no fire methods.  What did I
do wrong? 

It's reproducible.  My bean is a subclass of JPanel called Selector.
It has radio buttons, and the idea is for it to fire a SelectorEvent
(selectorChosen()) when one of the radio buttons changes state.
SelectorEvent is a subclass of EventObject, and SelectorListener is a
subclass of EventListener.  Selector implements SelectorListener.

Could it have to do with the fact that the event and the listener are
in a different package?  SelectorEvent and SelectorListener are in
com.execpc.ulthar.hxlib and Selector itself is in
com.execpc.ulthar.hxlib.selector.  (I do have an import statement,
and the code that NetBeans generated uses fully qualified names.)
The same thing happened when I tried to create an event source for
SetupEvent in com.execpc.ulthar.hxlib.setup, so I moved the SetupEvent
and SetupListener into com.execpc.ulthar.hxlib.setup and tried it
again.  This time I got "No room for element" in a dialog.
Comment 1 Tomas Hurka 2001-08-06 09:38:38 UTC
Created attachment 2065 [details]
Exception stacktrace
Comment 2 Tomas Hurka 2001-08-06 09:41:27 UTC
Created attachment 2066 [details]
Testcase
Comment 3 Tomas Hurka 2001-08-06 09:45:36 UTC
fixed in trunk
Comment 4 Tomas Hurka 2001-08-06 09:51:22 UTC
*** Issue 12364 has been marked as a duplicate of this issue. ***
Comment 5 Jan Becicka 2002-10-22 14:48:24 UTC
None objects to this fix since NB 3.3. Marking 
as verified.
Comment 6 Quality Engineering 2003-07-01 13:15:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.