"ui" files can be used in place of compiled Swing form classes.
I've been using the Swingset-ng library for simple GUI things; swingset
is a small wrapper around the MiG layout manager and a few Swing form
elements.
Some recent changes in JRuby made a few things stop working (something
to do with failing to locate the correct item when subclassing).
What I have been aiming for is a way to generate basic GUI code without
having to include Java files or compiled class files for the Swing stuff.
All that Java/Swing code can still be used, though.
The difference is that if you are using a compiled Java class for the UI
then in your view file you use:
set_java_class "NameOfUiClass"
That's been the more or less standard way people use Monkeybars.
If, instead, you want to use a Ruby file you pass a class constant:
set_java_class NameOfUiClass
Just make sure that class can be found in a file that's already been
required.
I've been really slack in updating docs. Mostly I find myself making
changes to code either to adjust something to work better for me, or to
fix a bug.
I've started working on some screencasts for Rawr, with the idea of
moving from very simple programs to more complex GUI apps, so as that
progresses there will be more docs.
I should see about at least adding another example to Monkeybars to
example basic usage for using a Ruby file as the GUI class.
Hope this helps some.
James
--
jamesbritt.com - Live curious
justthebestparts.com - Feed your head
neurogami.com - Hack your world