有人有 aerith 风格 swing 与 SWT 编辑的 GUI 可维护性混合的例子吗?
我的老板喜欢 VB(我们在一家 Java 商店工作),因为他认为 VB 很容易学习和维护。 我们希望使用 Eclipse SWT 编辑器将一些 VB 替换为 Java 等效项,因为我们认为它几乎同样易于维护。 为了销售这个,我们想使用 aerith 风格的 L&F。
任何人都可以提供一个 SWT 应用程序仍然能够在 eclipse 中编辑 GUI 但具有 Aerith L&F 的示例吗?
My boss loves VB (we work in a Java shop) because he thinks it's easy to learn and maintain. We want to replace some of the VB with java equivalents using the Eclipse SWT editor, because we think it is almost as easy to maintain. To sell this, we'd like to use an aerith style L&F.
Can anyone provide an example of an SWT application still being able to edit the GUI in eclipse, but having the Aerith L&F?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SWT 不支持外观和外观 感觉。 您可以通过更改操作系统本机 L&F 来获得不同的 L&F。 唯一的例外是使用 eclipse forms 工具包。 它仍然具有操作系统本机的感觉,但力求类似于网络浏览器的外观。 它主要通过将所有内容设置为 SWT.FLAT 并在所有内容上使用白色背景来实现此目的。 有时,他们必须手动在本身不支持的控件周围绘制轮廓。 如果您正在寻找跨平台出现的自定义 L&F,那么您确实需要 Swing。
SWT doesn't support look & feels. You can get different L&F's by altering your OS native L&F. The only exception is to using the eclipse forms toolkit. It still has the OS native feel, but strives for a web-browser-like look. It does this mostly by setting everything to SWT.FLAT, and using white backgrounds on everything. Occassionally, they have to manually draw outlines around controls that don't natively support it. If you're looking for custom L&F's that will appear across platforms, you really want Swing.
正如 Heath Borders 所说,SWT 不支持 L&F,因此您必须使用 Swing。 然而,Aerith 并不基于外观和感觉,而是基于在具有大量渐变的组件上进行自定义绘制。
如果您正在寻找(几乎)与 VB 一样易于使用的 Swing GUI 编辑器,请尝试 NetBeans 中的 Matisse GUI Builder 。 还有一个适用于 Eclipse 的版本,但它是随商业 MyEclipse 一起提供的。 如果您想了解有关使用酷炫的 GUI 编写应用程序的更多信息,请参阅 Chet 所著的 Filthy Rich Clients 一书哈斯和罗曼·盖伊。
如果这不能说服您的老板,请尝试调整 VB GUI 的大小,然后调整 Swing GUI 的大小。 ;-) 我想说,从长远来看,VB 确实不太好维护......
Like Heath Borders said, SWT doesn't support L&Fs, so you have to use Swing for that. Aerith however does not base on a look and feel, but on custom painting on the components with a lot of gradients.
If you are looking for a Swing GUI Editor that is (nearly) as easy to use as VB, try the Matisse GUI Builder in NetBeans. There is also a version for Eclipse, but it is shipped with the commercial MyEclipse. If you want to learn more about writing apps with cool a cool GUI, have a look at the Filthy Rich Clients book by Chet Haase and Romain Guy.
If this does not convince your boss, try to resize the VB GUI and then resize the Swing GUI. ;-) And I would say a VB is really not very good to maintain in the long run...