I have two pieces of window "closing" code:
1)
2)Code:frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Does one obviate the other? IOW, should I get rid of the first one when using the second one?Code:frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
try {
socketDispatchFile.close();
} catch (Exception exception) {
}
System.exit(0);
}
});
