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.
我正在寻找一个外观和行为类似于 Swing 的 JPlitPane 的 SWT 小部件。SWT 中是否有这样的小部件,如果没有,最接近它的是什么?(一个窗格分成两部分,可以移动两个部分之间的边界)
看一下 SashForm:
从javadoc...
SashForm 是一个复合控件,它以行或列排列(由方向指定)布置其子项,并在每个子项之间放置一个 Sash。一个孩子可以最大化以占据 SashForm 的整个大小。可以使用权重指定子项的相对大小。
SashForm 示例