2223242526272829303132
SwingUtilities.invokeLater(new Runnable() { public void run() { MainFrame inst = new MainFrame(); inst.setLocationRelativeTo(null); inst.setVisible(true); } }); }