문제

Can someone share how to make items in a ListViewer scrollable? Source code will be more helpful.

Thanks.

도움이 되었습니까?

해결책

Simply add SWT.H_SCROLL | SWT.V_SCROLL as second argument in the constructor, i.e.

ListViewer v = new ListViewer(shell, SWT.H_SCROLL | SWT.V_SCROLL);

Here is a Snippet - resize the shell to be small enough, and you get scroll bars.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top