What I did to add the scrollbar was to use libgdx ScrollPane.ScrollPaneStyle to set the scrollbar as a nine-pack.
ScrollPane.ScrollPaneStyle scrollStyle; /... scrollTexture = new Texture(Gdx.files.internal("Scroll9.png")); scrollNine = new NinePatch(new TextureRegion(scrollTexture,6,6),2,2,2,2);
then i created a vertical scroll knob
scrollStyle = new ScrollPane.ScrollPaneStyle(); scrollStyle.vScrollKnob = new NinePatchDrawable(box);
and applied the style to my scrollable table
scroll = new ScrollPane(test, scrollStyle);
Source: http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/ScrollPane.ScrollPaneStyle.html
source share