JRUBY 图形用户界面工具包
我一直在寻找 GUI 库一段时间了。我尝试过 Monkeybars 和 Glimmer,这两个对我来说最有吸引力,但我没能让它们运行(Glimmer 很旧,无法正确加载宝石),而且 Monkeybars 似乎已经死了,甚至无法运行运行视频演示中的 Hello World 示例。
所以我想知道您是否在 JRuby 库方面取得了成功(我更倾向于 Jruby,因为分发更容易)您会推荐什么?
I have been looking for a GUI library for a while now. I had tried Monkeybars and Glimmer, both of which appealed the most to me, but I didn't manage to get them running (Glimmer is very old, won't load the gem properly) and Monkeybars seems quite dead, can't even run the Hello World examples in the video presentations.
So I am wondering if you had any success with any JRuby libs (I am more in favour of Jruby because distribution is easier) What would you recommend?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
wrenta:“Monkeybars 似乎已经死了,甚至无法运行视频演示中的 Hello World 示例。”
您是否尝试联系任何 Monkeybars 开发人员,例如我?我猜你没有听说过,否则我就会听说过。我是项目负责人。这些示例可能已经过时,但代码本身非常活跃并且非常有用。
Mark:“如果您能够遵循 Java API,则不需要 Monkeybars。”
你不明白 Monkeybars 的作用。是的,它使使用所见即所得 IDE 中内置的 GUI 变得更容易,但真正的价值以及它存在的原因是,它提供了一种合理的方法来拆分 MVC 代码,以便您可以创建大型、多窗口、任意复杂的应用程序。 Raw Swing 对于像计算器这样轻量级的东西来说是可以的,但是如果你在一个严肃的桌面项目中尝试它,你很快就会想上吊。 Monkeybars 有助于保持它的干净、可测试和 Ruby。
wrenta: "Monkeybars seems quite dead, can't even run the Hello World examples in the video presentations."
Did you try to contact any of the Monkeybars developers, such as me? I'm guessing you didn't or I would have heard of it. I'm the project leader. The examples may be out of date, but the code itself is quite alive and very usable.
Mark: "Monkeybars isn't necessary if you can follow a Java API."
You don't understand the role of Monkeybars. Yes, it makes it easier to use a GUI built in aWYSIWYG IDE, but the real value, and the reason it exists, is that it provides a sane way to split up code a al MVC so that you can create large, multiple windowed, arbitrarily complex applications. Raw Swing is OK for something as lightweight as a calculator, but if you try that with a serious desktop project you'll soon want to hang yourself. Monkeybars helps keep it clean, testable, and Ruby.
JRuby 的优点在于您可以使用任何可用的 Java 库。这是关于使用 JRuby 创建 Swing 应用程序的最新教程。如果您可以遵循 Java API,则不需要 Monkeybars。如果您想要一些漂亮的预构建组件,请查看 SwingX。
Well, the beauty of JRuby is that you can use any of the Java libraries available. Here's a recent tutorial on creating a Swing application with JRuby. Monkeybars isn't necessary if you can follow a Java API. If you want some nifty pre-built components check out SwingX.