When making an application using Swing, I\'ve seen people do one of the two things to create a JFrame. Which is a better approach and why?
I\'m a beginner at Java an
Go for the first approach.
Because with that you can have more frames to be created. Because the application can have more than one window. As in the second case you can't create more frames.