JRuby with Swing WriteRoom/Darkroom-like editor.
Java Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
original_java_src
LICENSE.txt
README.md
darkness.rb

README.md

darkness

darkness is a Darkroom-like clone, that runs on JRuby with Java Swing. The purpose of darkness was educational; to provide a showcase of converting an old demo app from Java to JRuby. However, it is fully usable and can become a cross platform, lightweight, alternative to those who want to write distraction free.

Usage

do this in your favorite commandline:

$ jruby darkness.rb

Keys

ESC quits.
Use CTRL(Command)-L, CTRL(Command)-S to load and save.

About

Converting your existing Swing application from Java to JRuby is very possible. I've started doing this with zero knowledge of referencing Java from my JRuby powered code. I've learnt everything on the fly. Take a look at the sources of both the original and the JRuby version. You may like the reduction in code size and readability and tempted to do the same for your apps. I've also included in comments some pitfalls I've fallen into.

Copyright

Copyright (c) 2011 Dotan Nahum. See LICENSE.txt for further details.