@Override public ScrollPane createCompatibleScrollPane () { ScrollPane scrollPane = super.createCompatibleScrollPane(); scrollPane.setScrollingDisabled(false, false); return scrollPane; }
private void addVisWidgets () { ScrollableTextArea textArea = new ScrollableTextArea("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis odio.\nFun thing: This text area supports scrolling."); // --- VisTable table = new VisTable(); for (int i = 0; i < 20; i++) table.add(new VisLabel("Label #" + (i + 1))).expand().fill().row(); VisScrollPane scrollPane = new VisScrollPane(table); scrollPane.setFlickScroll(false); scrollPane.setFadeScrollBars(false); // --- add(textArea.createCompatibleScrollPane()).growX().height(100).row(); add(scrollPane).spaceTop(8).growX().row(); } }