« Return to Thread: Singleton TopComponents are called twice

Singleton TopComponents are called twice

by Dan Dubois-2 :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: Singleton TopComponents are called twice