groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tx. T" <>
Subject Re: GroovyFX - Custom UI widget/component
Date Sat, 31 Dec 2016 13:46:35 GMT
hi Dierk,
Thank you very much Dierk.  if you could make an example, that'll be GREAT. thanks so much!

      From: Dierk König <>
 Sent: Saturday, December 31, 2016 4:18 AM
 Subject: Re: GroovyFX - Custom UI widget/component
That is of course much simpler. Just make a method that returns a vbox with 3 buttons included. You
may want to pass the SceneGraphBuilder into the method as a parameter. 

I can make you an example. 

sent from:mobile 
Am 31.12.2016 um 04:35 schrieb Tx. T <>:

Not sure I understand that demo code.  It seems involving jfxexra.
I like some easy sample :) (noob here) that build a component that includes the existing UI
such as buttons, label, etc.
i.e.: panel contains 3 buttons  or any of the existing UI.
+--------------+ | [ button 1 ] | | [ button 2 ] | | [ button 3 ] |+--------------+
so I can instantiate multiple instances of this ThreeButtons UI.

      From: Dierk König <>
 Sent: Friday, December 30, 2016 1:36 PM
 Subject: Re: GroovyFX - Custom UI widget/component
You can wrap your custom component inside "node" like gauge is wrapped in node in this opendolphin
sent from:mobile 
Am 30.12.2016 um 19:04 schrieb Tx. T <>:

I am trying to build a somewhat application specific (custom) widget (or control) that includes
for example, 3 pushbuttons.
class ThreeButtons extends BorderPanel { ... }
&& use this in my application:
start { stage { scene { threeButtons (label1: 'one', label2: 'two', label3: 'three') } } } 
Would someone please point me to where can I find such example?
Or do I need to write the ThreeButtons in JavaFX and register in Groovy to use it?  Thanks!


View raw message