private void go(String[] args) {

        mainArgs = args;
        setDefaultTimeZone();   // let user override if needed
        // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        //
        JMenuBar menuBar = new JMenuBar();
        setJMenuBar( menuBar );
        addMenus( menuBar );
        /*
         * Add a fast close listener
         */

        addWindowListener( new WindowAdapter() {
                    public void windowClosing(WindowEvent e)
                    {
                        setVisible( false );
                        dispose();
                        System.exit(0);
                    }
                }
            );

        //
        // Load current file, prime tables and JFrame.
        //
        currFile = new LoadedFile( mainArgs[0] );
        TableView tView = getDefaultTableView();
        resetDefaults( tView );
        //
        // Set max size at start, and display the window.
        //
        Dimension screenMax = Toolkit.getDefaultToolkit().getScreenSize();
        setSize ( screenMax );
        setVisible(true);
    }
private void go ( String [ ] args ) { mainArgs = args ; setDefaultTimeZone ( ) ; setDefaultCloseOperation ( WindowConstants . DISPOSE_ON_CLOSE ) ; JMenuBar menuBar = new JMenuBar ( ) ; setJMenuBar ( menuBar ) ; addMenus ( menuBar ) ; addWindowListener ( new WindowAdapter ( ) { public void windowClosing ( WindowEvent e ) { setVisible ( false ) ; dispose ( ) ; System . exit ( 0 ) ; } } ) ; currFile = new LoadedFile ( mainArgs [ 0 ] ) ; TableView tView = getDefaultTableView ( ) ; resetDefaults ( tView ) ; Dimension screenMax = Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ; setSize ( screenMax ) ; setVisible ( true ) ; }
/*
go This method reads the file, creates the table to display,
the window to display it in, and displays the window.
@param fileName the name of the file to read.
@param tryLines An estimate of the number of lines in
the file.