如何在 SWT 中执行 Swing 的 JSplitPane?
我正在寻找一个 SWT 小部件,其外观和行为与 Swing 的 JPlitPane 类似。 SWT 中有这样的小部件吗?如果没有,最接近的是什么? (一个窗格分成两部分,能够移动两部分之间的边框)
I am looking for an SWT widget that would have the look and behavior similar to Swing's JPlitPane. Is there such a widget in SWT, and if not, what's the closest to it?
(A pane split to two with the ability to move the border between the two parts)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下 SashForm:
来自 javadoc...
SashForm 是一个复合控件,它将其子控件按行或列排列(由方向指定)进行布局,并在每个子控件之间放置一个 Sash。一个孩子可以被最大化以占据SashForm的整个尺寸。子项的相对大小可以使用权重指定。
SashForm 示例
Take a look at the SashForm:
From the javadoc...
The SashForm is a composite control that lays out its children in a row or column arrangement (as specified by the orientation) and places a Sash between each child. One child may be maximized to occupy the entire size of the SashForm. The relative sizes of the children may be specified using weights.
SashForm example