I should clarify; when I say my singleton TopComponents are being
called twice I mean two instances of each TopComponent are being
created through their public no argument constructors.
2009/6/19 Dan Dubois <
uvicoxpz@...>:
> Hi All,
>
> I have a NetBeans 6.7 RC3 platform application. I registered some
> listeners on an object in my TopComponent's constructor and realised
> they were being registered twice.
>
> I discovered this was because all my singleton TopComponents are
> called twice during my platform application start up. Once via
> reflection, and the second via the getDefault() boilerplate code that
> NetBeans generates.
>
> Is this normal behavior? I can't find anything about it on the web...
>
> Best wishes,
> Dan
>