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