I was taught to add this to always add this to the run method of jframe, but it doesn't change anything compared to not using it.
What I want to know is, what happens when you leave this out?
Thanks
@Override
public void run() {
frame = new JFrame(title);
frame.setPreferredSize(new Dimension(400, 200));
//frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
createComponents(frame.getContentPane());
frame.pack();
frame.setVisible(true);
}