I think the best practice would be to use "Singleton Pattern" design for your GUI class...
That is "Singleton Pattern" allows only one Instance for a particular class...
a.)
This is achieved by making the
Constructor of the respective class as private method There by no one can intialize the object in a routine way becoz the visibility of the
constructor is private..
b.)
To create the instance of that singleton class is done by providing a Static method which
returns the object of the class.
The logic for providing only single instance should go here in the Static method...
I can provide more info providing more details about the context and what is ur exact requirement.
Satish