Re: [jruby-user] Help For JrubyFX
Ariel Valentin <[email protected]> Fri, 6 Mar 2015 05:45:43 -0500
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <[email protected]> |
In Ruby, nil is the keyword for null references. It also adds attribute accessor syntax so that you can interact with Java objects with accessors as if they were POROs. E.g. scene.fill=nil Thanks, Ariel --- Sent from my mobile device. Please excuse any errors. > On Mar 6, 2015, at 5:39 AM, Parham Taheri <[email protected]> wrote: > > Hi Community > i wana use this JAVAFX Code > http://www.adam-bien.com/roller/abien/entry/completely_transparent_windows_stage_in > in JrubyFX > > class HelloWorldApp < JRubyFX::Application > def start(stage) > stage.initStyle(StageStyle::TRANSPARENT) > stage.title = "Hello World!" > stage.width = 600 > stage.height = 400 > text = Text.new("Hi") > text.setFont(Font.new(40)) > box = VBox.new > box.getChildren.add(text); > scene = Scene.new(box,600,400) > scene.setFill(null) > stage.setScene(scene) > stage.show > end > end > > HelloWorldApp.launch > > but i have Problem in scene.setFill(null) > I dont know how should I use setFill in JrubyFx > > -- > Posted via http://www.ruby-forum.com/. > > --------------------------------------------------------------------- > 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