More GUI classes in SwingSet?

7 views
Skip to first unread message

G. Miller

unread,
Jan 8, 2017, 9:42:59 AM1/8/17
to monkeybars-mvc
Hello,

I like the idea of having UI-Files in Ruby instead of Java classes.
And I also got a good impression of the MiGLayout scheme.

However, I found the set of available widget classes quite limiting.
Does anybody intend to add more class wrappers to swingset.rb?
Would you advise writing the wrappers myself?
Will there be any pitfalls etc?

Any answer appreciated
G

James Britt - Neurogami

unread,
Jan 8, 2017, 1:18:09 PM1/8/17
to monkeybars-mvc


I wrote SwingSet partly  as a proof-of-concept, and partly to make the use of common, basic Swing components easier to do without having to use a WYSIWYG tool (e.g. Netbeans).     

Monkeybars was being misrepresented as having a dependency on Netbeans.  This was never true.  Netbeans was used because it plus Monkeybars  provided the easiest, fastest, and most maintainable way to create robust desktop apps using JRuby.  But you could always just go straight to using Swing components and build your app in vi or Sublime Text (or whatever).

One issue I ran into was in subclassing some Swing classes.  I don't have the details handy right now. but there's at least one item in SwingSet that started failing because of a mismatched subclass. (I think it was related to changes in both Java and JRuby.)   

I've run into this in other cases of trying to use JRuby to wrap some Java objects (such as with the LeapMotion library).

I don't have any immediate plans to extend SwingSet, so  my advice would be to write your own UI component wrappers as you find the need for them.



Reply all
Reply to author
Forward
0 new messages