Re: [jruby-user] Help For JrubyFX

Benjamin Gudehus <[email protected]> Fri, 6 Mar 2015 11:41:39 +0100
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CANdUZf_a27njsR2YgOG_gddHFGDmJ9Pp9wdeLp2-7NUuHv5arQ@mail.gmail.com>
Maybe scene.setFill(nil) or scene.fill = nil?

On Fri, Mar 6, 2015 at 11: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
>
>
>