package ExceptTest; import javax.swing.JFrame; public class ExceptionTest { public static void main(String[] args) { ExceptionTestFrame frame = new ExceptionTestFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } }