|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Netbeans, Javafx & JRubyIn the search for the "perfect" gui for ruby, my latest area of investigation is in the javafx world.
Is it possible to use JRuby with javafx in the netbeans environment? The following code copied into a netbeans jfx project works fine. How would I change the project to use jruby? Googling does not seem to throw up any discussion on this matter. Is anyone able to point me in the direction of a resource covering this topic? https://openjfx.dev.java.net/Learning_More_About_JavaFX.html import javafx.ui.*; class HelloWorldModel { attribute saying: String; } var model = HelloWorldModel { saying: "Hello World" }; Frame { title: "Hello World JavaFX" width: 200 content: Label { text: bind model.saying } visible: true }; Thanks Paul Fraser --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Netbeans, Javafx & JRubyIn general I think we're going to need a bit of legwork to reuse the
frameworks JFX is based on in JRuby, but we can probably present just about as nice a scripting interface in the process. There's nothing automatic yet as far as I know (and of course JFX is still pretty "new"). Paul Fraser wrote: > In the search for the "perfect" gui for ruby, my latest area of > investigation is in the javafx world. > Is it possible to use JRuby with javafx in the netbeans environment? > The following code copied into a netbeans jfx project works fine. > How would I change the project to use jruby? > Googling does not seem to throw up any discussion on this matter. Is > anyone able to point me in the direction of a resource covering this topic? > > https://openjfx.dev.java.net/Learning_More_About_JavaFX.html > import javafx.ui.*; > > class HelloWorldModel { > attribute saying: String; > } > > var model = HelloWorldModel { > saying: "Hello World" > }; > > Frame { > title: "Hello World JavaFX" > width: 200 > > content: Label { > text: bind model.saying > } > visible: true > }; > > Thanks > Paul Fraser > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free Forum Powered by Nabble | Forum Help |