Content deleted Content added
BOT--Reverting link addition(s) by 150.204.129.43 to revision 499831935 (https://www.packtpub.com/javafx-1-2-application-development-cookbook/book, https://www.packtpub.com/javafx-1-2-application-develo... |
|||
(48 intermediate revisions by 32 users not shown) | |||
Line 2:
{{Infobox programming language
| name = JavaFX
| logo =
| developer = [[Sun Microsystems]]
| latest release version = 1.2
| latest release date = {{
| latest preview version =
| latest preview date =
Line 13 ⟶ 14:
| website = http://javafx.com/
}}
'''JavaFX
JavaFX targeted 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. ==History==
Line 23 ⟶ 25:
Its name was changed to JavaFX Script, and it became [[open source]]d at [[JavaOne]] 2007.
<!-- All the code, documentation and demos are shared in the [https://openjfx.dev.java.net/ Project OpenJFX] Development Website. (This is no more the case)-->JavaFX 1.0 was released on December 4, 2008.<ref>
On September 27, 2010 Stephen Chin announced Visage a declarative user-interface language based on the JavaFX Script with enhancements.<ref>{{cite web |url=http://steveonjava.com/accouncing-visage/ |title=Steve On Java » Announcing Visage – The DSL for Writing UIs |website=steveonjava.com |url-status=dead |archive-url=https://web.archive.org/web/20101001193810/http://steveonjava.com/accouncing-visage |archive-date=2010-10-01}} </ref>
On April 8, 2012 a project was created with the intention of resurrecting and enhancing the original F3 programming language, but the project appears to have been discontinued in August 2015.<ref>{{Citation |last=unktomi |title=unktomi/form-follows-function |date=2022-07-31 |url=https://github.com/unktomi/form-follows-function |access-date=2023-03-30}}</ref>
== Features ==
JavaFX Script
Through its standard [[JavaFX]] APIs it
Although F3 began life as an [[interpreted language]], prior to the first preview release (Q3 2008) JavaFX Script had shifted focus to being predominantly compiled.
== Syntax ==
Here is a simple [[Hello world program]] for JavaFX Script
<syntaxhighlight lang="java">
▲ import javafx.stage.Stage;
▲ import javafx.scene.Scene;
width: 250
▲ import javafx.scene.text.Text;
height: 80
▲ import javafx.scene.text.Font;
scene: Scene {
▲ Stage {
content:
▲ size : 24
</syntaxhighlight>
▲ x: 10, y: 30
▲ content: "Hello World"
▲ }
▲ }
▲It shows the following window/frame :
[[File:HelloWorld Java FX.jpg|260px]]
This program can also be written in JavaFX Script using a procedural style this way:
<syntaxhighlight lang="java">
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
var myFont: Font = Font.font(null, 24);
▲ import javafx.ext.swing.*;
var myLabel:Label = new Label();▼
myLabel.text = "Hello World!";▼
myFrame.width = 200;▼
myFrame.height = 50;▼
myFrame.content = myLabel;▼
myText.font = myFont;
myText.x = 10;
myText.y = 30;
myText.content = "Hello World";
var myScene:Scene = new Scene();
var myStage: Stage = new Stage();
myStage.scene = myScene;
</syntaxhighlight>
== See also ==
{{Portal|
* [[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 application|Rich Internet Applications (RIAs)]].
Line 98 ⟶ 109:
| date = November 23, 2009
| title = JavaFX in Action
| publisher = [[Manning Publications|Manning]]
| pages = 375
| isbn = 978-1-933988-99-
| url =
}}
* {{citation
|
|
|
|
|
|
|
|
}}
* {{citation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|access-date = August 2, 2009
|archive-date = August 15, 2009
|archive-url = https://web.archive.org/web/20090815082457/http://apress.com/book/view/1430218754
|url-status = dead
}}
* {{citation
|
|
|
|
|
|
|
|
|
|
|
|
}}
* {{citation
|
|
|
|
|
|
|
|
|
|
}}
* {{citation
| first = James L.
| last
| date
| title = JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications
| publisher = [[Apress]]
| pages = 200
| isbn
| url
| access-date = August 2, 2009
| archive-date = March 23, 2012
| archive-url = https://web.archive.org/web/20120323194640/http://www.apress.com/book/view/1590599454
| url-status = dead
}}
{{refend}}
==External links==
* [http://javafx.com/ JavaFX Main Site] {{Webarchive|url=https://web.archive.org/web/20110713091051/http://javafx.com/ |date=2011-07-13 }}
* [http://www.sun.com/software/javafx/index.jsp Sun's JavaFX overview]
* [http://blogs.
* [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://jfx.wikia.com/wiki/Main_Page Planet JFX Community Wiki] (how-to's, code samples, tutorials)
{{Sun Microsystems}}
{{DEFAULTSORT:
[[Category:Scripting languages]]▼
[[Category:Declarative programming languages]]
[[Category:Java programming language family]]
[[Category:JVM programming languages]]
▲[[Category:Scripting languages]]
|