问题
I tried to use:
container.setScrollableY(true);
container.setScrollVisible(true);
The container
is placed in the the center of a BorderLayout.
The container results scrollable, but the scroll bar is not visible (neither during the scrolling nor in other moments). Why?
回答1:
A scrollbar will only appear if you have enough content within the container and fades out when you don't scroll. Make sure to add enough elements to the container to see it and then try scrolling.
来源:https://stackoverflow.com/questions/50079153/codename-one-container-setscrollvisibletrue-in-the-center-of-a-borderlayout