Particularly new to Java, and I have a simple style/design/syntax question: when creating a JFrame:
JFrame frame = new JFrame(NAME);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
is the JFrame before EXIT_ON_CLOSE necessary? Isn't it already specified with using frame.setDefault...?
One last question is are there any particular benefits to using JFrame instead of Frame? Pros & Cons?
Thank you in advance!