JavaFX Script

JavaFX Script

Infobox_Software
name = JavaFX Script



caption =
developer = Sun Microsystems
latest_release_version = Alpha
latest_release_date =
operating_system = Cross-platform
language =
genre = Scripting language
license = GNU General Public License
website = [https://openjfx.dev.java.net/ JavaFX Script Website]

JavaFX Script is a scripting language designed by Sun Microsystems, forming part of the JavaFX family of technologies on the Java Platform. JavaFX targets the Rich Internet Application domain (competing with Adobe Flex and Microsoft Silverlight), specializing in rapid development of visually rich applications for the desktop and mobile markets. JavaFX Script works with integrated development environments like NetBeans and Eclipse. JavaFX is released under the GNU General Public License, via the Sun sponsored [https://openjfx.dev.java.net OpenJFX project] ,

History

JavaFX Script used to be called F3 for Form Follows Function. F3 was primarily developed by Chris Oliver, who became a Sun employee through their acquisition of SeeBeyond Technology Corporation in September 2005.

Its name was changed to JavaFX Script, and it became open sourced at JavaOne 2007.

It is currently in alpha stage, [ [https://openjfx.dev.java.net/JavaFX_FAQ.html#Where_can_I_obtain_JavaFX_and.2For_more_information_on_JavaFX.3F JavaFX FAQ] ] and all the code, documentation and demos are shared in the [https://openjfx.dev.java.net/ Project OpenJFX] Development Website. The preview SDK was released on July 31, 2008. [ [http://weblogs.java.net/blog/joshy/archive/2008/07/javafx_preview.html JavaFX Preview SDK released] ]

Features

JavaFX Script is a compiled statically typed declarative scripting language for the Java Platform providing automatic data-binding, full support for 2D graphics and standard Swing components as well as declarative animation. Because it is built on top of the Java Platform, it is easy to use any Java class in JavaFX scripts.

JavaFX is able to run on any platform which has the Java Runtime installed. No modifications are needed since the JavaFX interpreter generates default Java bytecode. A compiler is planned for the future that will improve performance by compiling JavaFX directly into bytecode.

JavaFX Script's declarative syntax for constructing user interfaces contrasts sharply with the more verbose series of method calls required to construct an equivalent interface in Swing directly.

Examples

Here is a simple Hello world program for JavaFX Script : import javafx.ext.swing.*; SwingFrame { title: "Hello World!"; width: 100; height: 50; content: Label { text: "Hello World!"; } visible: true; }It shows the following panel :

This program can also be written in this way:

import javafx.ext.swing.*; var myFrame:SwingFrame = new SwingFrame(); var myLabel:Label = new Label(); myLabel.text = "Hello World!"; myFrame.width = 200; myFrame.height = 50; myFrame.visible = true; myFrame.content = myLabel;

Prerequisites

Java SE 5 or Java SE 6 is required to support JavaFX Script development. Developers may work with JavaFX Script using the Eclipse or NetBeans IDEs by incorporating the necessary plugins.

References

Books

*cite book
last = James
first = L. Weaver
authorlink =
coauthors =
title = JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications
edition = First Edition
series = ISBN 978-1590599457
date = 2007-10-29
publisher = Apress

See also

* Ajax
* Java applet, a means of deploying Java applications inside a web page.
* JavaFX, a family of products and technologies intended to be used to create Rich Internet Applications (RIAs).
* Silverlight, a rival technology from Microsoft.
* Swing, the underlying user interface library employed by JavaFX Script.

External links

* [https://openjfx.dev.java.net/ JavaFX Main Site]
* [http://www.sun.com/software/javafx/index.jsp Sun's JavaFX overview]
* [http://blogs.sun.com/chrisoliver/category/F3 Chris Oliver's blog, F3 category]
* [http://learnjavafx.typepad.com James Weaver's Learn JavaFX Weblog]
* [http://java.sun.com/developer/technicalArticles/scripting/javafxpart1/ Sun.com - Learning JavaFX Script: An Introduction for Java Programmers]
* [http://www.nytimes.com/2007/05/08/technology/08sun.html Sun Plans Version of Java for Web-Linked Cellphones] (New York Times article)
* [http://news.com.com/Sun+tries+again+with+consumer-flavored+Java/2100-1007_3-6181922.html Sun tries again with consumer-flavored Java] (CNET article)
* [http://jfx.wikia.com/wiki/Main_Page Planet JFX Community Wiki] (how-to's, code samples, tutorials)
* [http://molgav.nn.ru Swing/JavaFx tutorials] (Russian language)


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • JavaFX Script — Apparu en 2007 JavaFX Script est un langage de script conçu par Sun Microsystems et basé sur la plate forme Java. Il est destiné aux applications internet riches de même type que celles conçues avec Adobe Flex, AJAX et Microsoft Silverlight. Il… …   Wikipédia en Français

  • JavaFX — Тип Rich Internet Application Разработчик Oracle Corporation Операционная система Java Runtime Environment Языки интерфейса JavaFX Script Аппаратная платформа Кроссплатформенное программное обеспечение …   Википедия

  • JavaFX — Basisdaten Entwickler Oracle Aktuelle Version …   Deutsch Wikipedia

  • JavaFX — Desarrollador Sun Microsystems (Comprada por Oracle Corporation). http://www …   Wikipedia Español

  • Javafx — ist eine Produktfamilie der Firma Sun Microsystems. Die einzelnen Produkte basieren auf Suns Java Plattform und wurden für die Entwicklung von Rich Internet Applications entworfen. Zur Zeit besteht JavaFX aus der Skriptsprache JavaFX Script und… …   Deutsch Wikipedia

  • JavaFX — est une famille de produits et de technologies de Sun Microsystems qui appartient à Oracle, suite au rachat de la compagnie le 20 avril 2009, rendue publique à la conférence de développeurs JavaOne en mai 2007. Les produits JavaFX ont pour but de …   Wikipédia en Français

  • JavaFX Mobile — était un projet de plateforme mobile permettant l exécution de code Java. Elle s appuie sur un noyau Linux et est compatible avec Java SE et Java ME. JavaFX Mobile forme avec JavaFX Script la technologie JavaFX. JavaFX Mobile est l évolution de… …   Wikipédia en Français

  • JavaFX — Infobox Software name = JavaFX logo = caption = Demonstration of JavaFX application developer = Sun Microsystems latest release version = latest release date = latest preview version = ? latest preview date = release date|2008|07|31 operating… …   Wikipedia

  • Form Follows Function — JavaFX Script JavaFX Script Apparu en 2007 JavaFX Script est un langage de script conçu par Sun Microsystems et basé sur …   Wikipédia en Français

  • HaXe — Entwickler: Motion Twin Aktuelle Version: 2.0 Betriebssystem: Windows, Linux, Mac OS X Kategorie: Programmierspr …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”