public static void main(String[] args) { GUI dialog = new GUI(); dialog.pack(); dialog.setVisible(true); System.exit(0); }