Can I use the Singleton Pattern to switch between the screens(JFrames ) in the Application ?
Rick Fortier
Ranch Hand
Joined: Jun 04, 2001
Posts: 147
posted
0
Please provide a more detailed question.
Peter den Haan
author
Ranch Hand
Joined: Apr 20, 2000
Posts: 3252
posted
0
It's not clear to me how you would do that. But in general: if you're thinking about using the Singleton pattern anywhere, think again. It's one of the most abused patterns around. Use it only for classes which simply break if you have more than one instance, not for classes where you happen to need only a single instance. - Peter