Link Details

Link 82977 thumbnail
User 250147 avatar

By geertjan
via java.dzone.com
Published: May 26 2008 / 15:36

The concerns about the future of Swing and it's relation to Java FX seem to be all over the place right now. However—if you look under the hood of Java FX Script—all the widgets seem to wrap/need Swing components more or less directly. Java FX Script seems to use Swing components as "Service Provider".
  • 13
  • 0
  • 1059
  • 299

Comments

Add your comment
User 46563 avatar

rv49649 replied ago:

0 votes Vote down Vote up Reply

Silverlight has XAML, Flex has MXML, and JavaFX has JavaFX Script.

By now the case has been well made for the advantage of using these declarative GUI DSLs. They aide clarity of code structure, are more concise, and increase programmer efficiency.

One RIA solution that does not have a declarative script DSL, though, is GWT.

One may think, so GWT is already an abstraction over HTML DOM and JavaScript. Well, HTML itself proved to be a poor visual layout syntax. And in fairness to HTML, it's heritage is that of being a markup language - based on SGML. The emphasis of HTML is very different than these GUI layout DSLs (enumerated above).

Thus in abstracting over HTML DOM and JavaScript, GWT chose to do that with an imperative programming API.

They just need to compliment that now with a declarative GUI DSL - much as JavaFX has done for Swing.

Who knows - perhaps JavaFX Script could be used as the GWT GUI DSL...

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (13)



Voters Against This Link (0)