如何在 SWT 中执行 Swing 的 JSplitPane?

发布于 2025-01-04 09:52:44 字数 105 浏览 5 评论 0原文

我正在寻找一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吃兔兔 2025-01-11 09:52:44

看一下 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文