private void init() {
        this.setLayout(new BorderLayout());

        // MAIN PANEL
        JPanel mainPanel = new JPanel();
        Border margin = new EmptyBorder(10, 10, 5, 10);

        mainPanel.setBorder(margin);
        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));

        mainPanel.add(makeTitlePanel());

        // SortFilterModel mySortedModel =
        // new SortFilterModel(myStatTableModel);
        myJTable = new JTable(statModel);
        myJTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
        myJTable.setPreferredScrollableViewportSize(new Dimension(500, 70));
        RendererUtils.applyRenderers(myJTable, RENDERERS);
        myScrollPane = new JScrollPane(myJTable);
        this.add(mainPanel, BorderLayout.NORTH);
        this.add(myScrollPane, BorderLayout.CENTER);
        JPanel opts = new JPanel();
        opts.add(useGroupName, BorderLayout.WEST);
        opts.add(saveTable, BorderLayout.CENTER);
        opts.add(saveHeaders, BorderLayout.EAST);
        this.add(opts, BorderLayout.SOUTH);
    }
private void init ( ) { this . setLayout ( new BorderLayout ( ) ) ; JPanel mainPanel = new JPanel ( ) ; Border margin = new EmptyBorder ( 10 , 10 , 5 , 10 ) ; mainPanel . setBorder ( margin ) ; mainPanel . setLayout ( new BoxLayout ( mainPanel , BoxLayout . Y_AXIS ) ) ; mainPanel . add ( makeTitlePanel ( ) ) ; myJTable = new JTable ( statModel ) ; myJTable . getTableHeader ( ) . setDefaultRenderer ( new HeaderAsPropertyRenderer ( ) ) ; myJTable . setPreferredScrollableViewportSize ( new Dimension ( 500 , 70 ) ) ; RendererUtils . applyRenderers ( myJTable , RENDERERS ) ; myScrollPane = new JScrollPane ( myJTable ) ; this . add ( mainPanel , BorderLayout . NORTH ) ; this . add ( myScrollPane , BorderLayout . CENTER ) ; JPanel opts = new JPanel ( ) ; opts . add ( useGroupName , BorderLayout . WEST ) ; opts . add ( saveTable , BorderLayout . CENTER ) ; opts . add ( saveHeaders , BorderLayout . EAST ) ; this . add ( opts , BorderLayout . SOUTH ) ; }
Main visualizer setup.