Code example for JScrollPane

Methods: setMinimumSize

0
     * displayed. The tree should already be created before calling this method. 
     * 
     * @return a scroll pane containing the test tree GUI 
     */ 
    protected JScrollPane createTreePanel() {
        JScrollPane treeP = new JScrollPane(tree);
        treeP.setMinimumSize(new Dimension(100, 0));
        return treeP;
    } 
 
    /** 
     * Create the main panel where components can display their GUIs. 
     * 
     * @return the main scroll pane 
     */ 
    protected JScrollPane createMainPanel() {
        return new JScrollPane();
    } 
 
    /**