File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Singleton Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Singleton Pattern" Watch "Singleton Pattern" New topic
Author

Singleton Pattern

poornima sudharshan
Greenhorn

Joined: May 18, 2001
Posts: 18
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
Please provide a more detailed question.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Singleton Pattern
 
Similar Threads
how to make single instance of a class?
Static methods Vs "Instance Methods"
running only one instance of java program
Limited no of Objects
Hibernate SessionFactory is initialized/read with every EJB call