The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Interfaces

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Singleton Applet!!

Posted by Ana Maria on April 17, 2001 at 12:38 PM

Hi, Please I need help desperately, I have to make a singleton an applet, and I have try this way on the constructor:

if(instance==null) {
instance = new DisplayInitialAlertsSingleton(initialalert);
}
return instance;

But it doesn't work, can anybody tell me another way to do a singleton applet or tell me why this one doesn't work?



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us