public ScrollPane createCompatibleScrollPane ( ) { VisScrollPane scrollPane = new VisScrollPane ( this ) ; scrollPane . setOverscroll ( false , false ) ; scrollPane . setFlickScroll ( false ) ; scrollPane . setFadeScrollBars ( false ) ; scrollPane . setScrollbarsOnTop ( true ) ; scrollPane . setScrollingDisabled ( true , false ) ; return scrollPane ; }
Creates scroll pane for this scrolling text area with best possible default settings . Note that text area can belong to only one scroll pane calling this multiple times will break previously created scroll pane . The scroll pane should be embedded in container with fixed size or optionally grow property .