My app has a BrowserComponent in the layout, where a long page can be displayed.
It is intended to scroll, but without scrollbars visible.
A further fact is that when I grab the scrollbars with the mouse pointer the side menu wants to appear and it is coming visible indeed (if I drag laterally it appears completely).
webView.setScrollVisible(false);
mainVertical.add(BorderLayout.NORTH,anotherArea);
area.setScrollableX(false);
area.setScrollableY(false);
area.add(BorderLayout.CENTER,webView);
mainVertical.setScrollableX(false);
mainVertical.setScrollableY(false);
mainVertical.add(BorderLayout.CENTER,area);
/* UIManager.getInstance().setLookAndFeel(new DefaultLookAndFeel(UIManager.getInstance()) {
@Override
public void bind(Component cmp) {
if (cmp instanceof Container) {
cmp.setScrollVisible(false);
}
}
});*/
this.setLayout(new BorderLayout());
this.add(BorderLayout.CENTER,mainVertical);
but even uncommenting those commented lines there is a visible scrollbar.
I cannot get rid of it.