definitely check out the Singleton design
pattern (Here's an article that Dirk wrote for our monthly journal:
Question: What's a Singleton? But with a singleton, you only can make one instance of an object of the particular class.
If you want to make multiple instance of class, but only want some certain initializationcode to run once; try putting the code in a static initializer. That way the code will only be executed once -- when the class is first loaded. (This google search may find some good details:
+java +"static initializer")
Hope that helps. Good Luck!
[ April 15, 2005: Message edited by: Jessica Sant ]