import com.formdev.flatlaf.FlatDarkLaf; import ui.SubmissionFrame; /** * * @author Mark George <mark.george@otago.ac.nz> */ public class Main { private static final float VERSION = 1.2f; @SuppressWarnings("Convert2Lambda") public static void main(String args[]) throws Exception { System.out.println("\nVERSION: " + VERSION+"\n"); FlatDarkLaf.setup(); java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { SubmissionFrame frame = new SubmissionFrame(); frame.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); frame.setVisible(true); } }); } }