Using invokeLater to load the frame.