public static void main(String[] args) {

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {

                try {
                    MainFrame frame = new MainFrame();
                    frame.initAndShow();
                } catch (Exception e) {
                    System.err.println(e);
                }
            }
        });
    }