import com.formdev.flatlaf.FlatDarkLaf; import ui.SubmissionFrame; /** * * @author mark */ public class Main { @SuppressWarnings("Convert2Lambda") public static void main(String args[]) throws Exception { FlatDarkLaf.setup(); java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { SubmissionFrame dialog = new SubmissionFrame(); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } }