Linux 上 SWT 中的 MDI?
我想使用 SWT 创建 MDI 应用程序。
我进行了广泛的搜索,并发现 Decorations
对象是负责尝试支持行为的对象。但是,我有一个 Linux 盒子,并且 提供的示例 对我不起作用。
上述链接提供的示例的输出为:
但是,在 Linux (GTK) 上,我只看到没有控制栏或框的标签!
I'd like to create an MDI application using SWT.
I've done extensive searches and reach that the Decorations
Object is the one responsable for trying supporting behavior. However, I've a Linux box, and the example provided
doesn't work for me.
The output of the example provided by the above link is:
However, on Linux (GTK), I see only labels without control bars or boxes!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能想看看 Eclipse 富客户端平台。它基于 SWT 构建,为您提供 Eclipse 用户界面(带有视图和编辑器)的完全灵活性 - 以及许多其他有趣的东西,例如智能插件和模块化系统或成熟的在线帮助。看一下 RCP Mail 演示 - 这是一个简单的演示程序,向您展示如何创建不同的视图并移动它们。 (我会提供我的教程,但它是用德语编写的。您会在网上找到很多好东西。)如果您仍然感兴趣,Jeff McAffer 提供了一本名为 Eclipse Rich Client Platform 的书 - 非常好的指南。
You might want to take a look at the Eclipse Rich Client Platform. It's built on SWT and gives you the full flexibility of the Eclipse User Interface (with views and editors) - and lots of other interesting stuff like a smart plug-in and modularization system or a full-fledged online help. Take a look at the RCP Mail Demo - it's a simple demo program that shows you how to create different views and move them around. (I'd offer my tutorial, but it's written in german. You'll find lots of good stuff around the net.) If you're still interested, there's a book named Eclipse Rich Client Platform available by Jeff McAffer - excellent guide.
使用 Novocode 应用程序框架 。它有一个桌面表单来实现这一点,我喜欢它,即使选项卡现在很流行。我已经使用它并取得了巨大成功!
(来源:novocode.com)
Use the Novocode Application Framework. It has a Desktop Form for exactly that, and I like it, even if tabs are all the hype now. I already used it with great success!
(source: novocode.com)