Jump to content

JavaFX: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Rescuing 51 sources and tagging 1 as dead.) #IABot (v2.0.9.5
 
(7 intermediate revisions by 7 users not shown)
Line 5: Line 5:
| developer = [[Oracle Corporation]]
| developer = [[Oracle Corporation]]
| released = {{Start date and age|2008|12|04}}
| released = {{Start date and age|2008|12|04}}
| latest release version = 20.0.1
| latest release version = 21.0.2
| latest release date = {{Start date and age|2023|04|19}}<ref>{{Cite web|url=https://gluonhq.com/products/javafx/openjfx-20-release-notes/|title=OpenJFX 19 Release Notes|access-date=2023-06-20|archive-date=2023-06-20|archive-url=https://web.archive.org/web/20230620153945/https://gluonhq.com/products/javafx/openjfx-20-release-notes/|url-status=live}}</ref>
| latest release date = {{Start date and age|2024|01|16}}<ref>{{Cite web|url=https://gluonhq.com/products/javafx/|title=Products » JavaFX|access-date=2023-06-20}}</ref>
| latest preview version =
| latest preview version =
| latest preview date =
| latest preview date =
Line 32: Line 32:
Sun touts "Drag-to-Install" as opening up of a new distribution model and allowing developers to "break away from the browser".
Sun touts "Drag-to-Install" as opening up of a new distribution model and allowing developers to "break away from the browser".


JavaFX 1.x included a set of plug-ins for Adobe Photoshop and Illustrator that enable advanced graphics to be integrated directly into JavaFX applications. The plug-ins generate JavaFX Script code that preserves the layers and structure of the graphics. Developers can then add animation or effects to the static graphics imported. There is also an SVG graphics converter tool (also known as Media Factory) that allows for importing graphics and previewing assets after the conversion to JavaFX format.
JavaFX 1.x included a set of plug-ins for Adobe Photoshop and Illustrator that enable advanced graphics to be integrated directly into JavaFX applications. The plug-ins generate JavaFX Script code that preserves the layers and structure of the graphics. Developers can then add animation or effects to the static graphics imported. There is also an SVG graphics converter tool (also known as Media Factory) that allows for importing graphics and previewing assets after the conversion to JavaFX format.<ref>{{Cite web |title=Installing JavaFX Production Suite |url=http://java.sun.com/javafx/1/reference/production-suite-install/index.html |archive-url=https://web.archive.org/web/20090817205413/http://java.sun.com/javafx/1/reference/production-suite-install/index.html |archive-date=2009-08-17 |website=Sun Developer Network}}</ref>


Before version 2.0 of JavaFX, developers used a statically typed, declarative language called [[JavaFX Script]] to build JavaFX applications. Because JavaFX Script was compiled to [[Java bytecode]], programmers could also use [[Java Runtime Environment|Java]] code instead. JavaFX applications before 2.0 could run on any desktop that could run [[Java SE]], just like it is with the current versions.<ref>{{Cite web|title=JavaFX Overview (Release 8)|url=https://docs.oracle.com/javase/8/javafx/get-started-tutorial/jfx-overview.htm|access-date=2021-12-26|website=docs.oracle.com|year=2014|archive-date=2021-10-21|archive-url=https://web.archive.org/web/20211021042605/https://docs.oracle.com/javase/8/javafx/get-started-tutorial/jfx-overview.htm|url-status=live}}</ref>
Before version 2.0 of JavaFX, developers used a statically typed, declarative language called [[JavaFX Script]] to build JavaFX applications. Because JavaFX Script was compiled to [[Java bytecode]], programmers could also use [[Java Runtime Environment|Java]] code instead. JavaFX applications before 2.0 could run on any desktop that could run [[Java SE]], just like it is with the current versions.<ref>{{Cite web|title=JavaFX Overview (Release 8)|url=https://docs.oracle.com/javase/8/javafx/get-started-tutorial/jfx-overview.htm|access-date=2021-12-26|website=docs.oracle.com|year=2014|archive-date=2021-10-21|archive-url=https://web.archive.org/web/20211021042605/https://docs.oracle.com/javase/8/javafx/get-started-tutorial/jfx-overview.htm|url-status=live}}</ref>
Line 41: Line 41:


=== WebView ===
=== WebView ===
WebView, the embedded browser component, uses the [[WebKit]] browser engine and supports the usual HTML5 features such as canvas, media, meter, progress, details and summary tags as well as MathML, SVG, JavaScript and CSS. WebAssembly support is not enabled.
[[WebView]], the embedded [[web browser]] component, uses the [[WebKit]] [[browser engine]]. It supports the usual HTML5 features such as canvas, media, meter, progress, details and summary tags as well as MathML, SVG, JavaScript and CSS. [[WebAssembly]] support is not enabled.


=== JavaFX Mobile ===
=== JavaFX Mobile ===
Line 68: Line 68:
JavaFX 8 adds several new features, including:<ref>{{cite web | url = https://www.oracle.com/technetwork/java/javafx/overview/roadmap-1446331.html | title = JavaFX Roadmap | publisher = [[Oracle Corporation]] | access-date = 2012-11-24 | url-status = dead | archive-url = https://web.archive.org/web/20121201211443/https://www.oracle.com/technetwork/java/javafx/overview/roadmap-1446331.html | archive-date = 2012-12-01 }}</ref>
JavaFX 8 adds several new features, including:<ref>{{cite web | url = https://www.oracle.com/technetwork/java/javafx/overview/roadmap-1446331.html | title = JavaFX Roadmap | publisher = [[Oracle Corporation]] | access-date = 2012-11-24 | url-status = dead | archive-url = https://web.archive.org/web/20121201211443/https://www.oracle.com/technetwork/java/javafx/overview/roadmap-1446331.html | archive-date = 2012-12-01 }}</ref>


[[File:JavaFX - 3D shapes with materials adjusted.png|thumb|Example of simple 3D scene using JavaFX.]]
[[File:JavaFX - 3D shapes with materials adjusted.png|thumb|Example of simple 3D scene using JavaFX]]
* Support for 3D graphics<ref>{{cite web | url=https://mail.openjdk.java.net/pipermail/openjfx-dev/2012-October/003641.html | title=3D Features Planned for Version 8 | publisher=[[Oracle Corporation]] | first=Chien | last=Yang | access-date=2012-11-24 | archive-date=2013-12-07 | archive-url=https://web.archive.org/web/20131207005653/http://mail.openjdk.java.net/pipermail/openjfx-dev/2012-October/003641.html | url-status=live }}</ref><ref>{{cite web | url=https://wikis.oracle.com/display/OpenJDK/3D+Features | title=3D Features Planned for Version 8 | publisher=[[Oracle Corporation]] | access-date=2012-11-24 | archive-date=2013-05-02 | archive-url=https://web.archive.org/web/20130502130923/https://wikis.oracle.com/display/OpenJDK/3D+Features | url-status=live }}</ref>
* Support for 3D graphics<ref>{{cite web | url=https://mail.openjdk.java.net/pipermail/openjfx-dev/2012-October/003641.html | title=3D Features Planned for Version 8 | publisher=[[Oracle Corporation]] | first=Chien | last=Yang | access-date=2012-11-24 | archive-date=2013-12-07 | archive-url=https://web.archive.org/web/20131207005653/http://mail.openjdk.java.net/pipermail/openjfx-dev/2012-October/003641.html | url-status=live }}</ref><ref>{{cite web | url=https://wikis.oracle.com/display/OpenJDK/3D+Features | title=3D Features Planned for Version 8 | publisher=[[Oracle Corporation]] | access-date=2012-11-24 | archive-date=2013-05-02 | archive-url=https://web.archive.org/web/20130502130923/https://wikis.oracle.com/display/OpenJDK/3D+Features | url-status=live }}</ref>
* Sensor support
* Sensor support
Line 140: Line 140:
=== Early releases ===
=== Early releases ===


JavaFX Script, the scripting component of JavaFX, began life as a project by [[Chris Oliver (software engineer)|Chris Oliver]] called F3.<ref>{{cite web |date=2012-01-06 |title=F3 ( Chris Oliver's Weblog) |url=https://blogs.oracle.com/chrisoliver/entry/f3 |url-status=bot: unknown |archive-url=https://web.archive.org/web/20120106124512/http://blogs.oracle.com/chrisoliver/entry/f3 |archive-date=2012-01-06 |access-date=2016-08-20}}</ref>
JavaFX Script, the scripting component of JavaFX, began life as a project by Chris Oliver called F3.<ref>{{cite web |date=2012-01-06 |title=F3 ( Chris Oliver's Weblog) |url=https://blogs.oracle.com/chrisoliver/entry/f3 |url-status=bot: unknown |archive-url=https://web.archive.org/web/20120106124512/http://blogs.oracle.com/chrisoliver/entry/f3 |archive-date=2012-01-06 |access-date=2016-08-20}}</ref>


[[Sun Microsystems]] first announced JavaFX at the [[JavaOne]] Worldwide Java Developer conference in May 2007.
[[Sun Microsystems]] first announced JavaFX at the [[JavaOne]] Worldwide Java Developer conference in May 2007.
Line 234: Line 234:
During development, [[Sun microsystems|Sun]] explained they will roll out their strategy for the JavaFX licensing model for JavaFX first release.<ref name="javaFXFAQ">{{cite web | url=http://java.sun.com/javafx/faqs.jsp#2 | title=Will JavaFX technology be released in open source? | access-date=2008-06-07 | archive-date=2008-06-12 | archive-url=https://web.archive.org/web/20080612174718/http://java.sun.com/javafx/faqs.jsp#2 | url-status=live }}</ref> After the release in 2008, [[Jeet Kaul]], Sun's [[Vice president]] for Client Software, explained that they will soon publish a specification for JavaFX and its associated [[file format]]s, and will continue to open-source the JavaFX runtime, and decouple this core from the proprietary parts licensed by external parties.<ref>{{ cite web|url=http://blogs.sun.com/meetjeet/entry/javafx_the_road_ahead |title=JavaFX&nbsp;— the road ahead |date=2008-12-16 |last=Kaul |first=Jeet |access-date=2009-01-03 |url-status=dead |archive-url=https://web.archive.org/web/20081217162601/http://blogs.sun.com/meetjeet/entry/javafx_the_road_ahead |archive-date=December 17, 2008 }}</ref>
During development, [[Sun microsystems|Sun]] explained they will roll out their strategy for the JavaFX licensing model for JavaFX first release.<ref name="javaFXFAQ">{{cite web | url=http://java.sun.com/javafx/faqs.jsp#2 | title=Will JavaFX technology be released in open source? | access-date=2008-06-07 | archive-date=2008-06-12 | archive-url=https://web.archive.org/web/20080612174718/http://java.sun.com/javafx/faqs.jsp#2 | url-status=live }}</ref> After the release in 2008, [[Jeet Kaul]], Sun's [[Vice president]] for Client Software, explained that they will soon publish a specification for JavaFX and its associated [[file format]]s, and will continue to open-source the JavaFX runtime, and decouple this core from the proprietary parts licensed by external parties.<ref>{{ cite web|url=http://blogs.sun.com/meetjeet/entry/javafx_the_road_ahead |title=JavaFX&nbsp;— the road ahead |date=2008-12-16 |last=Kaul |first=Jeet |access-date=2009-01-03 |url-status=dead |archive-url=https://web.archive.org/web/20081217162601/http://blogs.sun.com/meetjeet/entry/javafx_the_road_ahead |archive-date=December 17, 2008 }}</ref>


At [[JavaOne]] 2011, [[Oracle Corporation]] announced that JavaFX 2.0 would become open-source.<ref name="zdnet.co.uk"/> Since December 2011, Oracle began to open-source the JavaFX code under the [[GNU General Public License|GPL]]+[[GPL linking exception|linking exception]].<ref name="openJFX"/><ref>{{cite web | url=https://forums.oracle.com/forums/thread.jspa?messageID=10017677 | title=Call for patches | first=Richard | last=Bair | date=2011-12-02 | publisher=[[Oracle Corporation]] | access-date=2011-12-07 }}{{Dead link|date=December 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref>{{unreliable source?|date=May 2012}}
At [[JavaOne]] 2011, [[Oracle Corporation]] announced that JavaFX 2.0 would become open-source.<ref name="zdnet.co.uk"/> Since December 2011, Oracle began to open-source the JavaFX code under the [[GNU General Public License|GPL]]+[[GPL linking exception|linking exception]].<ref name="openJFX"/><ref>{{cite web | url=https://forums.oracle.com/forums/thread.jspa?messageID=10017677 | archive-url=https://archive.today/20130131062814/https://forums.oracle.com/forums/thread.jspa?messageID=10017677 | url-status=dead | archive-date=January 31, 2013 | title=Call for patches | first=Richard | last=Bair | date=2011-12-02 | publisher=[[Oracle Corporation]] | access-date=2011-12-07 }}</ref>{{unreliable source?|date=May 2012}}


In December 2012, new portions of the JavaFX source code were open-sourced by Oracle:<ref>{{cite web | url=https://mail.openjdk.java.net/pipermail/openjfx-dev/2012-December/005007.html | title=More of JavaFX open-sourced | first=Pavel | last=Safrata | date=2012-12-18 | publisher=[[Oracle Corporation]] | access-date=2013-01-05 | archive-date=2012-12-29 | archive-url=https://web.archive.org/web/20121229000929/http://mail.openjdk.java.net/pipermail/openjfx-dev/2012-December/005007.html | url-status=live }}</ref>
In December 2012, new portions of the JavaFX source code were open-sourced by Oracle:<ref>{{cite web | url=https://mail.openjdk.java.net/pipermail/openjfx-dev/2012-December/005007.html | title=More of JavaFX open-sourced | first=Pavel | last=Safrata | date=2012-12-18 | publisher=[[Oracle Corporation]] | access-date=2013-01-05 | archive-date=2012-12-29 | archive-url=https://web.archive.org/web/20121229000929/http://mail.openjdk.java.net/pipermail/openjfx-dev/2012-December/005007.html | url-status=live }}</ref>
Line 282: Line 282:
{{Rich web applications}}
{{Rich web applications}}


[[Category:Java (programming language)]]
[[Category:Java (programming language) libraries]]
[[Category:Oracle software]]
[[Category:Oracle software]]
[[Category:Rich web application frameworks]]
[[Category:Rich web application frameworks]]

Latest revision as of 06:08, 4 September 2024

JavaFX
Developer(s)Oracle Corporation
Initial releaseDecember 4, 2008; 15 years ago (2008-12-04)
Stable release
21.0.2 / January 16, 2024; 9 months ago (2024-01-16)[1]
Repository
Operating systemJava
PlatformCross-platform
Available inJava
TypeApplication framework
LicenseGPL+classpath exception[2]
Website

JavaFX is a software platform for creating and delivering desktop applications, as well as rich web applications that can run across a wide variety of devices. JavaFX has support for desktop computers and web browsers[citation needed] on Microsoft Windows, Linux (including Raspberry Pi), and macOS, as well as mobile devices running iOS and Android, through Gluon Mobile.

With the release of JDK 11 in 2018, Oracle made JavaFX part of the OpenJDK under the OpenJFX project,[3] in order to increase the pace of its development.[4]

Open-source JavaFXPorts works for iOS (iPhone and iPad) and Android.[5] The related commercial software created under the name "Gluon" supports the same mobile platforms with additional features plus desktop.[6] This allows a single source code base to create applications for the desktop, iOS, and Android devices.

Features

[edit]

JavaFX 1.1 was based on the concept of a "common profile" that is intended to span across all devices supported by JavaFX. This approach makes it possible for developers to use a common programming model while building an application targeted for both desktop and mobile devices and to share much of the code, graphics assets and content between desktop and mobile versions. To address the need for tuning applications on a specific class of devices, the JavaFX 1.1 platform includes APIs that are desktop or mobile-specific. For example, the JavaFX Desktop profile includes Swing and advanced visual effects.

For the end user, the "Drag-to-Install" feature enables them to drag a JavaFX widget - an application residing in a website - and drop it onto their desktop. The application will not lose its state or context even after the browser is closed. An application can also be re-launched by clicking on a shortcut that gets created automatically on the user's desktop. This behavior is enabled out-of-the-box by the Java applet mechanism since the Java 6u10 update, and is leveraged by JavaFX from the underlying Java layer. Sun touts "Drag-to-Install" as opening up of a new distribution model and allowing developers to "break away from the browser".

JavaFX 1.x included a set of plug-ins for Adobe Photoshop and Illustrator that enable advanced graphics to be integrated directly into JavaFX applications. The plug-ins generate JavaFX Script code that preserves the layers and structure of the graphics. Developers can then add animation or effects to the static graphics imported. There is also an SVG graphics converter tool (also known as Media Factory) that allows for importing graphics and previewing assets after the conversion to JavaFX format.[7]

Before version 2.0 of JavaFX, developers used a statically typed, declarative language called JavaFX Script to build JavaFX applications. Because JavaFX Script was compiled to Java bytecode, programmers could also use Java code instead. JavaFX applications before 2.0 could run on any desktop that could run Java SE, just like it is with the current versions.[8]

JavaFX 2.0 and later is implemented as a Java library, and applications using JavaFX are written in normal Java code. The scripting language was scrapped by Oracle, however the development of it continued for a few years in the Visage project, finally ending in 2013.[9][10]

Sun Microsystems licensed a custom typeface called Amble for use on JavaFX-powered devices. The font family was designed by mobile user interface design specialist Punchcut and is available as part of the JavaFX SDK 1.3 Release.

WebView

[edit]

WebView, the embedded web browser component, uses the WebKit browser engine. It supports the usual HTML5 features such as canvas, media, meter, progress, details and summary tags as well as MathML, SVG, JavaScript and CSS. WebAssembly support is not enabled.

JavaFX Mobile

[edit]

JavaFX Mobile was the implementation of the JavaFX platform for rich web applications aimed at mobile devices. JavaFX Mobile 1.x applications can be developed in the same language, JavaFX Script, as JavaFX 1.x applications for browser or desktop, and using the same tools: JavaFX SDK and the JavaFX Production Suite. This concept makes it possible to share code-base and graphics assets for desktop and mobile applications. Through integration with Java ME, the JavaFX applications have access to capabilities of the underlying handset, such as the filesystem, camera, GPS, bluetooth or accelerometer.

An independent application platform built on Java, JavaFX Mobile is capable of running on multiple mobile operating systems, including Android, Windows Mobile, and proprietary real-time operating systems.

JavaFX Mobile was publicly available as part of the JavaFX 1.1 release announced by Sun Microsystems on February 12, 2009.

Sun planned to enable out-of-the-box support of JavaFX on the devices by working with handset manufacturers and mobile operators to preload the JavaFX Mobile runtime on the handsets. JavaFX Mobile running on an Android was demonstrated at JavaOne 2008 and selected partnerships (incl. LG Electronics, Sony Ericsson) were announced at the JavaFX Mobile launch in February, 2009.

Components

[edit]

The JavaFX platform includes the following components:

  • The JavaFX SDK: Including among other things graphics, media services, rich text libraries, and the web view.
  • NetBeans IDE for JavaFX: NetBeans with drag-and-drop palette to add objects with transformations, effects and animations plus a set of samples and best practices. For Eclipse users there is a community-supported plugin hosted on e(fx)clipse.
  • JavaFX Scene Builder: This was introduced for JavaFX 2.1 and later. A user interface (UI) is created by dragging and dropping controls from a palette. The layout is saved as an FXML file, which is a special XML format.

History

[edit]

Releases after version bump

[edit]

JavaFX is now part of the JRE/JDK for Java 8 (released on March 18, 2014) and has the same numbering, i.e., JavaFX 8.[11]

JavaFX 8 adds several new features, including:[12]

Example of simple 3D scene using JavaFX
  • Support for 3D graphics[13][14]
  • Sensor support
  • MathML support, with JavaFX 8 Update 192
  • Printing and rich text support
  • Generic dialog templates to replace JOptionPane (as of JavaFX 8u40)[15]

JavaFX 9 features were centered on extracting some useful private APIs from the JavaFX code to make these APIs public:

  • JEP 253: Prepare JavaFX UI Controls and CSS APIs for Modularization[16]

Oracle announced their intention to stop bundling JavaFX in their build of JDK 11 and later.[17] It is no longer bundled with the latest version.

JavaFX 11 was first shipped in September 2018.

  • JavaFX 11.0.2 is the latest public release of JavaFX 11.[18]
  • JavaFX 11.0.16 is the latest release of JavaFX 11 for those with a long-term support contract.[19]
  • MathML support
  • FX Robot API

JavaFX 12 was first shipped in March 2019.

  • JavaFX 12.0.1.[18]
  • Support for mouse forward/back buttons
  • New protected VirtualFlow methods for subclassing[20]

JavaFX 13 shipped in September 2019.

  • Support for e-paper displays
  • Support for native media rendering, through WritableImages backed by NIO ByteBuffers[21]

JavaFX 14 was released in March 2020.

  • Tab size property for Text and TextFlow
  • Support for HTTP/2 in WebView[22]

JavaFX 15 was released in September 2020.

  • Support for e-paper displays on i.MX6 devices[23]

JavaFX 16 was released in March 2021.

JavaFX 17 was released in September 2021. Highlights:

  • 3D SpotLight type
  • Load images and stylesheets from inline data-URIs
  • Print to files
  • Query states of CAPS LOCK and NUM LOCK keys
  • Support for multiple screens in the window toolkit for embedded platforms

JavaFX 18 was released in March 2022. Highlights:

  • Support for the H.265/HEVC media codec in the video player
  • 3D DirectionalLight type
  • Transparent backgrounds in WebView
  • Set the "managed" property of nodes from CSS
  • Factory methods for Border and Background

JavaFX 19 was released in September 2022. Highlights:

  • Support for the H.265/HEVC HTTP Live Streaming in the video player
  • Fluent bindings with lambdas: map, flatMap and orElse
  • :focus-visibile and :focus-within CSS pseudo-classes

JavaFX 20 was released in March 2023. Highlights:

  • Constrained resize policies for TableView and TreeTableView
  • Improved lifecycle of UI controls skins (Skin::install)
  • A simplified and deterministic way to manage listeners (ObservableValue::when)[24]

Early releases

[edit]

JavaFX Script, the scripting component of JavaFX, began life as a project by Chris Oliver called F3.[25]

Sun Microsystems first announced JavaFX at the JavaOne Worldwide Java Developer conference in May 2007.

In May 2008 Sun Microsystems announced plans to deliver JavaFX for the browser and desktop by the third quarter of 2008, and JavaFX for mobile devices in the second quarter of 2009. Sun also announced a multi-year agreement with On2 Technologies to bring comprehensive video capabilities to the JavaFX product family using the company's TrueMotion Video codec. Since end of July 2008, developers could download a preview of the JavaFX SDK for Windows and Macintosh, as well as the JavaFX plugin for NetBeans 6.1.

Major releases since JavaFX 1.1 have a release name based on a street or neighborhood in San Francisco. Update releases typically do not have a release name.[26]

On December 4, 2008, Sun released JavaFX 1.0.2.

JavaFX for mobile development was finally made available as part of the JavaFX 1.1 release (named Franca[26]) announced officially on February 12, 2009.

JavaFX 1.2 (named Marina[26]) was released at JavaOne on June 2, 2009. This release introduced:[27]

JavaFX 1.3 (named Soma[26]) was released on April 22, 2010. This release introduced:[28]

  • Performance improvements
  • Support of additional platforms
  • Improved support for user interface controls

JavaFX 1.3.1 was released on August 21, 2010. This release introduced:

  • Quick startup time of JavaFX application
  • Custom progress bar for application startup

JavaFX 2.0 (named Presidio[26]) was released on October 10, 2011. This release introduced:

  • A new set of Java APIs opening JavaFX capabilities to all Java developers, without the need for them to learn a new scripting language. JavaFX Script support was dropped permanently.
  • Support for high performance lazy binding, binding expressions, bound sequence expressions, and partial bind re-evaluation.
  • Dropping support for JavaFX Mobile.
  • Oracle announcing its intent to open-source JavaFX.
  • JavaFX runtime turning to be platform-specific, utilizing system capabilities, as video codec available on the system; instead of implementing only one cross-platform runtime as with JavaFX 1.x.

Various improvements have been made within the JavaFX libraries for multithreading. The Task APIs have been updated to support much more concise threading capabilities (i.e. the JavaTaskBase class is no longer necessary since all the APIs are in Java, and the requirement to have a callback interface and Java implementation class are no longer necessary). In addition, the scene graph has been designed to allow scenes to be constructed on background threads and then attached to "live" scenes in a threadsafe manner.

On May 26, 2011, Oracle released the JavaFX 2.0 Beta. The beta release was only made available for 32 and 64 bit versions of Microsoft Windows XP, Windows Vista and Windows 7. An Early Access version for Mac OS X was also available for members of the JavaFX Partner Program at the time, while Linux support was planned for a future release of JavaFX. JavaFX 2.0 was released with only Windows support. Mac OS X support was added with JavaFX 2.1. Linux support was added with JavaFX 2.2.

JavaFX 2.0 makes use of a new declarative XML language called FXML.[29][30]

On April 27, 2012, Oracle released version 2.1 of JavaFX,[31] which includes the following main features:[32]

  • First official version for OS X (desktop only)
  • H.264/MPEG-4 AVC and Advanced Audio Coding support
  • CoolType text
  • UI enhancements including combo box controls, charts (stacked chart), and menu bars
  • Webview component now allows JavaScript to make calls to Java methods

On August 14, 2012, Oracle released version 2.2 of JavaFX,[33] which includes the following main features:[34]

  • Linux support (including plugin and webstart)
  • Canvas
  • New controls: Color Picker, Pagination
  • HTTP Live Streaming support
  • Touch events and gestures
  • Image manipulation API
  • Native Packaging

JavaFX 2.2 adds new packaging option called Native Packaging, allowing packaging of an application as a "native bundle". This gives users a way to install and run an application without any external dependencies on a system JRE or FX SDK.

As of Oracle Java SE 7 update 6 and JavaFX 2.2, JavaFX is bundled to be installed with Oracle Java SE platform.[11]

Future work

[edit]

Oracle also announced in November 2012 the open sourcing of Decora, a DSL Shader language for JavaFX allowing to generate Shaders for OpenGL and Direct3D.[35]

Oracle wrote in its Client Support Roadmap that JavaFX new fixes will continue to be supported on Java SE 8 through March 2025.[36] Previously, Oracle announced that they are "working with interested third parties to make it easier to build and maintain JavaFX as a separately distributable open-source module." JavaFX will continue to be supported in the future by the company Gluon as a downloadable module in addition to the JDK.[37]

Availability

[edit]

As of March 2014 JavaFX is deployed on Microsoft Windows, OS X, and Linux.[38] Oracle has an internal port of JavaFX on iOS and Android.[39][40] Support for ARM is available starting with JavaFX 8[41] On February 11, 2013, Richard Bair, chief architect of the Client Java Platform at Oracle, announced that Oracle would open-source the iOS and Android implementations of its JavaFX platform in the next two months.[42][43]

Starting with version 8u33 of JDK for ARM, support for JavaFX Embedded has been removed.[44]

Support will continue for x86-based architectures.[45]

A commercial port of JavaFX for Android and iOS has been created under the name "Gluon".[6]

License

[edit]

There are various licenses for the previous modules that used to compose the JavaFX runtime:

During development, Sun explained they will roll out their strategy for the JavaFX licensing model for JavaFX first release.[49] After the release in 2008, Jeet Kaul, Sun's Vice president for Client Software, explained that they will soon publish a specification for JavaFX and its associated file formats, and will continue to open-source the JavaFX runtime, and decouple this core from the proprietary parts licensed by external parties.[50]

At JavaOne 2011, Oracle Corporation announced that JavaFX 2.0 would become open-source.[29] Since December 2011, Oracle began to open-source the JavaFX code under the GPL+linking exception.[2][51][unreliable source?]

In December 2012, new portions of the JavaFX source code were open-sourced by Oracle:[52]

  • the animations and timelines classes
  • the event delivery mechanism and other various core classes
  • the render tree interface, and the implementation of this interface
  • the geometry and shapes implementation
  • the Java part of the rendering engine used in the rendering pipeline
  • the logging support

See also

[edit]

References

[edit]
  1. ^ "Products » JavaFX". Retrieved 2023-06-20.
  2. ^ a b "OpenJFX Project". Oracle Corporation. Archived from the original on 2011-12-05. Retrieved 2011-12-07.
  3. ^ "JavaFX Developer Home". www.oracle.com. Archived from the original on 2019-07-12. Retrieved 2019-06-14.
  4. ^ Smith, Donald (March 7, 2018). "The Future of JavaFX and Other Java Client Roadmap Updates". Archived from the original on November 17, 2018. Retrieved June 14, 2019.
  5. ^ "JavaFXPorts - Gluon". Gluon. Archived from the original on 2018-05-02. Retrieved 2018-05-01.
  6. ^ a b "Rapid Enterprise Mobile Apps: Build, Connect, Manage with Gluon". 2017-12-16. Archived from the original on 2017-12-15. Retrieved 2017-12-16.
  7. ^ "Installing JavaFX Production Suite". Sun Developer Network. Archived from the original on 2009-08-17.
  8. ^ "JavaFX Overview (Release 8)". docs.oracle.com. 2014. Archived from the original on 2021-10-21. Retrieved 2021-12-26.
  9. ^ "Google Code Archive - Long-term storage for Google Code Project Hosting". Code.google.com. Archived from the original on 2016-04-01. Retrieved 2016-08-01.
  10. ^ "Visage Language". GitHub. Archived from the original on 2023-07-07. Retrieved 2023-07-06.
  11. ^ a b "JavaFX FAQ". Oracle.com. Archived from the original on 2018-10-29. Retrieved 2019-09-24.
  12. ^ "JavaFX Roadmap". Oracle Corporation. Archived from the original on 2012-12-01. Retrieved 2012-11-24.
  13. ^ Yang, Chien. "3D Features Planned for Version 8". Oracle Corporation. Archived from the original on 2013-12-07. Retrieved 2012-11-24.
  14. ^ "3D Features Planned for Version 8". Oracle Corporation. Archived from the original on 2013-05-02. Retrieved 2012-11-24.
  15. ^ "Dialog (JavaFX 9)". Archived from the original on 2015-01-05. Retrieved 2015-01-05.
  16. ^ Giles, Jonathan (2015-01-14). "JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization". Oracle Corporation. Archived from the original on 2016-03-10. Retrieved 2016-01-17.
  17. ^ "Gluon and JavaFX". Archived from the original on 2019-04-29. Retrieved 2018-10-29.
  18. ^ a b "javafxports/openjdk-jfx". GitHub. Archived from the original on 2020-08-03. Retrieved 2020-07-20.
  19. ^ "JavaFX". Gluon. Archived from the original on 2022-09-28. Retrieved 2022-10-05.
  20. ^ "OpenJFX 12 Release notes". Gluon. Archived from the original on 2023-07-07. Retrieved 2023-07-06.
  21. ^ "OpenJFX 13 Release notes". Gluon. Archived from the original on 2023-07-07. Retrieved 2023-07-06.
  22. ^ "OpenJFX 14 Release notes". Gluon. Archived from the original on 2023-07-07. Retrieved 2023-07-06.
  23. ^ "OpenJFX 15 Release notes". Gluon. Archived from the original on 2023-07-07. Retrieved 2023-07-06.
  24. ^ JavaFX 20 and Beyond, archived from the original on 2023-06-20, retrieved 2023-06-20
  25. ^ "F3 ( Chris Oliver's Weblog)". 2012-01-06. Archived from the original on 2012-01-06. Retrieved 2016-08-20.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  26. ^ a b c d e "Repositories and Releases". 2013-06-29. Archived from the original on 2013-10-19. Retrieved 2013-10-18.
  27. ^ Marinacci, Joshua (2009-06-09). "Top 5 Most Important Features in JavaFX 1.2". Archived from the original on 2009-06-13. Retrieved 2009-06-12.
  28. ^ "JavaFX 1.3 Released, Improves User Experiences". 2010-04-22. Archived from the original on 2011-04-30. Retrieved 2010-04-25.
  29. ^ a b Meyer, David (2011-10-06). "JavaFX 2.0 arrives and heads for open source". ZDNet. Archived from the original on 2011-11-25. Retrieved 2011-10-09.
  30. ^ Brown, Greg (2011-08-15). "Introducing FXML" (PDF). Archived (PDF) from the original on 2012-01-31. Retrieved 2011-10-09.
  31. ^ "JDK 7u4 and JavaFX 2.1 released, now also including Mac OS X | Across the Universe". Terrencebarr.wordpress.com. 2012-04-27. Archived from the original on 2016-10-19. Retrieved 2016-08-01.
  32. ^ "JavaFX 2.1 Release Notes". Oracle Corporation. Archived from the original on 2012-05-08. Retrieved 2012-05-05.
  33. ^ "What's new in JavaFX 2.2 (The JavaFX Blog)". Blogs.oracle.com. Archived from the original on 2016-08-21. Retrieved 2016-08-01.
  34. ^ "JavaFX 2.2 Release Notes". Oracle Corporation. Archived from the original on 2012-08-21. Retrieved 2012-10-02.
  35. ^ Bair, Richard (2012-11-06). "Open Sourcing: decora-compiler". Oracle Corporation. Archived from the original on 2013-12-07. Retrieved 2012-11-24.
  36. ^ "Oracle Java SE Support Roadmap". Oracle Technology Network. Oracle. 2020-05-13. Archived from the original on 2019-12-31. Retrieved 2020-05-31.
  37. ^ "JavaFX". Archived from the original on 2019-05-24. Retrieved 2019-05-26.
  38. ^ "General Availability Download". Oracle Corporation. Archived from the original on 2012-12-26. Retrieved 2013-01-05.
  39. ^ Bair, Richard (2012-12-03). "Porting JavaFX". Mail.openjfx.dev.java.net. Archived from the original on 2014-06-20. Retrieved 2013-01-05.
  40. ^ Brandalik, Tomas (2012-12-07). "Survey: JavaFX on tablets and mobile devices". Archived from the original on 2014-06-20. Retrieved 2013-01-05.
  41. ^ "1 JavaFX Overview (Release 8)". Docs.oracle.com. Archived from the original on 2016-06-23. Retrieved 2016-08-01.
  42. ^ Bair, Richard (2013-02-16). "February Open Source Update". Oracle Corporation. Archived from the original on 2013-02-14. Retrieved 2013-02-13.
  43. ^ "Oracle Announces Open Source JavaFX for iOS and Android". Infoq.com. 2013-02-13. Archived from the original on 2013-02-17. Retrieved 2013-02-16.
  44. ^ "JDK for ARM 8u33 release notes". Oracle Corporation. 2013-02-16. Archived from the original on 2015-03-14. Retrieved 2015-03-09.
  45. ^ Topic, Dalibor (2013-01-27). "Raspberry Pi's mailing list: Where's JavaFX in recent Java 8u33 for the ARM ?". Archived from the original on 2015-03-09. Retrieved 2015-03-09.
  46. ^ "OpenJFX Compiler Project". Openjfx-compiler.dev.java.net. Retrieved 2008-06-07.[permanent dead link]
  47. ^ "Project Scene Graph home". Scenegraph.dev.java.net. Archived from the original on 2012-03-06. Retrieved 2008-06-07.
  48. ^ "JavaFX Downloads". Openjfx.dev.java.net. Retrieved 2008-06-07.[permanent dead link]
  49. ^ "Will JavaFX technology be released in open source?". Archived from the original on 2008-06-12. Retrieved 2008-06-07.
  50. ^ Kaul, Jeet (2008-12-16). "JavaFX — the road ahead". Archived from the original on December 17, 2008. Retrieved 2009-01-03.
  51. ^ Bair, Richard (2011-12-02). "Call for patches". Oracle Corporation. Archived from the original on January 31, 2013. Retrieved 2011-12-07.
  52. ^ Safrata, Pavel (2012-12-18). "More of JavaFX open-sourced". Oracle Corporation. Archived from the original on 2012-12-29. Retrieved 2013-01-05.

Bibliography

[edit]
[edit]