Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以分享如何使 ListViewer 中的项目可滚动吗?源代码会更有帮助。
谢谢。
只需SWT.H_SCROLL | SWT.V_SCROLL在构造函数中添加作为第二个参数,即
SWT.H_SCROLL | SWT.V_SCROLL
ListViewer v = new ListViewer(shell, SWT.H_SCROLL | SWT.V_SCROLL);
这是一个片段 - 将外壳调整为足够小,然后您会看到滚动条。