Re: REST vs. JavaFX
Thufir wrote:
On Sat, 06 Jun 2009 21:07:26 -0700, Daniel Pitts wrote:
Thufir wrote:
I thought JavaFX was a simplified version of Swing. How can it replace
a REST interface?
That is a non-sequitur. What are you talking about?
Well, yeah, that's my question -- what's it about. It doesn't follow:
"The CEO has also made it clear he expects the Sun-backed OpenOffice
project - and potential challenger to Microsoft's Office - to dump AJAX
and switch to Sun's JavaFX for its web interface."
http://www.theregister.co.uk/2009/06/02/ellison_oracle_javafx/
I haven't looked at it very much, but it seems to me that JavaFX is a
Swing replacement, so how can it supplant AJAX?
JavaFX is not a Swing replacement. JavaFX is a programming language and
platform, Swing is a Java library of GUI components. JavaFX is intended for
the 'Net, Swing for the desktop. Swing can be used by applets, but that is
indirect and difficult. JavaFX can be used on the desktop; in that respect it
is similar to PHP. JavaFX can also be used on mobile devices, it seems.
Swing generally cannot.
I haven't used JavaFX, and I know very little about it. Let's spend a few
moments on the Web reading up on it.
The first thing I want to know is, "What is it?" I generally start with the
obvious places.
From <http://javafx.com/about/at-a-glance.jsp> I discovered that it's an
"[e]xpressive RIA [Rich Internet Application] platform for all screens" and a
"simple, declarative language for creative minds" that runs on the JVM.
<http://java.sun.com/javafx/>
Build rich internet applications (RIAs) with the JavaFX family of products.
<http://java.sun.com/javafx/1/tutorials/core/>
The JavaFX Script programming language lets you create
modern looking [sic] applications with sophisticated
graphical user interfaces.
<http://javafx.com/about/at-a-glance.jsp>
JavaFX applications are written in JavaFX Script, a language
designed for Web developers and technical designers who like
to program in a visual context.
A comparison of JavaFX to AJAX will answer the other half of your question.
--
Lew