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.
我目前正在使用 Eclipse 中的 SWT 包。是否可以在复合控件中创建可调整大小的控件。
例如,如果我有一个想要展开的树控件,但为了查看子树项目,我想“单击并拖动”树的边框来调整它的大小,就像在Eclipse 帮助网站。
我认为 SWT Sash是您正在寻找的。
这是一个关于如何使用它的好例子。
编辑:
刚刚发现SashForm更容易使用。请参阅LINK以获得一个很好的示例。