addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { dispose(); System.exit(0); } });
System.out.println("Starting AbstractExampleFault..."); AbstractExampleFault mainFrame = new AbstractExampleFault(); mainFrame.setSize(400, 400); mainFrame.setTitle("AbstractExampleFault"); mainFrame.setVisible(true);