16171819202122232425
try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace(); } JFrame jf = new MainWindow(); jf.setPreferredSize(new Dimension(800, 600)); jf.pack(); jf.setVisible(true); }