1、附录:中英文翻译 英文部分 Cross-platform development with JRuby and Swing In addition to building Web and console applications with Ruby, you can write complex GUI desktop applications that run unmodified on multiple platforms. Thanks to JRuby, a robust alternative to the traditional C implementation of Ruby, R
2、uby GUI toolkits can use UI tools available to the Java platform.15 Ruby is currently best known as a programming language for building Web applications, primarily with the Ruby on Rails framework. However, the language is more than capable for developing graphical desktop applications as well. Ruby
3、 for the desktop The standard Ruby distribution includes code for bindings for Tk, an open source, cross-platform set of widgets for creating graphical desktop applications. This can be extremely handy. But when you install Ruby from source code, you need to be sure you also have the Tk dependencies
4、 and make sure the compilation settings include Tk. If you install Ruby on Windows using the excellent “one-click“ installer package, you still must take extra steps to have Tk working, because it no longer supports automatic installation.Even with Tk set up for Ruby it is somewhat clunky. Tk applications often look like Tk applications; depending on the target platform they can look rather ugly. And trying to create complex interfaces is daunting. Tk is best used for smaller GUI needs. Avai