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
The first approach is better.
Typically you are not adding any new functionality to the frame so creating a direct instance of the class makes sense.