Re: [jruby-user] Help For JrubyFX
Thomas E Enebo <[email protected]> Fri, 6 Mar 2015 08:47:34 -0600
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CAL5zZV=121nNCVJK3ZEGoMPzOfybgx988fMbkZ0anoAjpBrBcQ@mail.gmail.com> |
I think what you want (transparent scene) you can get by looking at samples/analog_clock.rb in the source repo. As others have said setFill(nil) because null is not a valid value in Ruby. -Tom On Fri, Mar 6, 2015 at 4: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 > > > -- blog: http://blog.enebo.com twitter: tom_enebo mail: [email protected]