In my java program, I have various JFrame
windows.
My main frame can open all the other frames. I want to be able to run only one instance each frame. I want also to be able to pass arguments to the frame.
Should I use Singleton to initiate the class and then pass the arguments? Or is there a better way?