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.
(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.
Created attachment 2065 [details] Exception stacktrace
Created attachment 2066 [details] Testcase
fixed in trunk
*** Issue 12364 has been marked as a duplicate of this issue. ***
None objects to this fix since NB 3.3. Marking as verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.