FXML & JavaFX Scene Builder But Code in Scala

1,951 views
Skip to first unread message

Vivek Kumar

unread,
Jun 7, 2013, 5:26:30 AM6/7/13
to scala...@googlegroups.com

Hi,

 

I like the FXML & JavaFX Scene Builder while doing Complex GUI design in Rich Desiger IDE. I love markup language for GUI design very much & find it difficult to leave this. Is there any way to use Scala while still continuing with FXML & Scene Builder
 
Please advice thanks for it
 
Warm Regards,
Vivek
 

Prasanna Kumar

unread,
Jun 7, 2013, 8:57:49 AM6/7/13
to scala...@googlegroups.com
I have not seen people used scenebuilder to build scalafx gui. I believe that scenebuilder does not emit scalaFx code hence the reason.  


 

--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards
Prassee

Stephen Chin

unread,
Jun 7, 2013, 9:25:26 AM6/7/13
to scala...@googlegroups.com
There is no reason you can't use FXML and Scene Builder together with Scala/ScalaFX.  Simply load the FXML file as you normally would in Java and add it to the scene graph.

Cheers,
--Steve
Cheers,
--Steve
blog: http://steveonjava.com

rajma...@gmail.com

unread,
Jun 7, 2013, 11:52:51 AM6/7/13
to scala...@googlegroups.com
Vivek,

Check this link https://github.com/jsacha/ProScalaFX/tree/master/src/proscalafx/ch10/fxml (FXML/SceneBuilder) + Scala :)
Thank you and regards,
Rajmahendra R Hegde (Raj)
Website:
http://www.twitter.com/rajonjava
http://www.jugchennai.in             
----------------------------------------------------------------------------------------------
"DREAM is not what you see in sleep;
is the thing which does not let you sleep" - APJ Abdul Kalam
Do the difficult things while they are easy and do the great things while they are small.
A journey of a thousand miles must begin with a single step. - Lao Tzu


Raj

unread,
Jun 7, 2013, 11:56:40 AM6/7/13
to scala...@googlegroups.com
Vivek,

And some day.. if you fedup with XML language... then join Fabian's Project FXML to ScalaFX  https://groups.google.com/forum/?fromgroups#!topic/scalafx-users/FTqm0aA_6VU

My advance welcome to Anti-XML family :) 


On Friday, June 7, 2013 9:22:51 PM UTC+5:30, Raj wrote:
Vivek,

Check this link https://github.com/jsacha/ProScalaFX/tree/master/src/proscalafx/ch10/fxml (FXML/SceneBuilder) + Scala :)
On Fri, Jun 7, 2013 at 6:55 PM, Stephen Chin <steve...@gmail.com> wrote:
There is no reason you can't use FXML and Scene Builder together with Scala/ScalaFX.  Simply load the FXML file as you normally would in Java and add it to the scene graph.

Cheers,
--Steve
On 7 Jun 2013, at 09:57 , Prasanna Kumar <prassee...@gmail.com> wrote:

I have not seen people used scenebuilder to build scalafx gui. I believe that scenebuilder does not emit scalaFx code hence the reason.  
On Fri, Jun 7, 2013 at 2:56 PM, Vivek Kumar <vivek....@gmail.com> wrote:
Hi,
 
I like the FXML & JavaFX Scene Builder while doing Complex GUI design in Rich Desiger IDE. I love markup language for GUI design very much & find it difficult to leave this. Is there any way to use Scala while still continuing with FXML & Scene Builder
 
Please advice thanks for it
 
Warm Regards,
Vivek
 

--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards
Prassee


--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Cheers,
--Steve
blog: http://steveonjava.com

--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Vivek Kumar

unread,
Jun 8, 2013, 1:21:11 AM6/8/13
to scala...@googlegroups.com
Thanks Raj,

It was helpful !


About Markup language for GUI design - My personal view:

- Markup language for GUI design  & an IDE makes things easier for starters or new developers. Particular if not so skilled developers working for you, its time consuming to train everyone on syntax. However with market up language and IDE Designer they can do some experiment

I guess this is why Microsoft Silverlight / WPF   & Expression Blend become so popular in enterprise application development  

 - Separation of concern:  GUI designer and Developer can work independently thanks to Bi-Directional binding infrastructure

- I am still wailting to see MVVM design pattern in JavaFX  & Scala GUI

 Any way these are my personal view! 

Regards,
Vivek


On Friday, June 7, 2013 11:56:40 PM UTC+8, Raj wrote:
Vivek,

And some day.. if you fedup with XML language... then join Fabian's Project FXML to ScalaFX  https://groups.google.com/forum/?fromgroups#!topic/scalafx-users/FTqm0aA_6VU

My advance welcome to Anti-XML family :) 

On Friday, June 7, 2013 9:22:51 PM UTC+5:30, Raj wrote:
Vivek,

Check this link https://github.com/jsacha/ProScalaFX/tree/master/src/proscalafx/ch10/fxml (FXML/SceneBuilder) + Scala :)
On Fri, Jun 7, 2013 at 6:55 PM, Stephen Chin <steve...@gmail.com> wrote:
There is no reason you can't use FXML and Scene Builder together with Scala/ScalaFX.  Simply load the FXML file as you normally would in Java and add it to the scene graph.

Cheers,
--Steve
On 7 Jun 2013, at 09:57 , Prasanna Kumar <prassee...@gmail.com> wrote:

I have not seen people used scenebuilder to build scalafx gui. I believe that scenebuilder does not emit scalaFx code hence the reason.  
On Fri, Jun 7, 2013 at 2:56 PM, Vivek Kumar <vivek....@gmail.com> wrote:
Hi,
 
I like the FXML & JavaFX Scene Builder while doing Complex GUI design in Rich Desiger IDE. I love markup language for GUI design very much & find it difficult to leave this. Is there any way to use Scala while still continuing with FXML & Scene Builder
 
Please advice thanks for it
 
Warm Regards,
Vivek
 

--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards
Prassee


--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Cheers,
--Steve
blog: http://steveonjava.com

--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

phdoerfler

unread,
Jun 8, 2013, 5:53:49 AM6/8/13
to scala...@googlegroups.com
Hi,

You can use controller classes and objects written in Scala when loading FXML files. In addition, because of the implicits in scalafx.Includes._ you can seamlessly interact with the JavaFX scenegraph as if it were ScalaFX objects.
If you're using SBT, you might find some use in my shamelessly self promoted prototype which generates those controller classes for you: sbt-fxml

This being said, it would be nice if there'd be some way to serialize a scenegraph back to FXML so a hand written ScalaFX GUI can be edited visually in SceneBuilder again. I really miss JavaFX Script which didn't feel as much of a compromise as FXML does. I don't know how actively Visage(FX) is being developed, it might be worth looking at. Script brought us vaporware like the JavaFX authoring tool / JavaFX Design tool. Featurewise it looks like a great product superior to SceneBuilder but I have not found a download link. I only managed to find a report about it in an old German magazine.

So for the time being, I guess we have to live with FXML and it's weird expression syntax, which is powerful enough for most things, but nobody knows the exact syntax.

Cheers,
Philipp

rajma...@gmail.com

unread,
Jun 8, 2013, 1:27:34 PM6/8/13
to scala...@googlegroups.com

What is see is.... MVVM  is nothing but a MS sugary name to MVC! VM is also same as "C"

I support what Sun said when they brought JavaFX 1

"todays RIA platform follows Markup language as standard ... but we like to provide a easy way to do it.. so FX Script! "  

Silverlight, Air, etc most of RIA uses XML and they are failed to stand in market. JavaFX 1 come with a new spirit but later its ported on "Heavy language" the guardians of javafx know its tough to do RIA in such big language so they again brought XML into picture... to solve again the XML tough way of writing nature.. they brought a draganddrop nature IDE.

Pity to the hard life of a wonderful vision of Java based RIA!

Attention!!!!!!
For all XML lovers
 :P


Disclaimer: What all i have explained above are all what i personally feel about this wonderful platform. No intention of attack and show any one / company / organization down.   :D     /me pokes O... employee again. 


Reply all
Reply to author
Forward
0 new messages