FazBrowse Wikipedia Viewer | Main Page |
Search Wikipedia:
|
Viewing: https://en.wikipedia.org/wiki/JavaFX_Mobile

JavaFX

Contents
Features
    WebView
    3D
    JavaFX Mobile
Components
    Modules
Bibliography

{{Cite web |last=openjdk |title=Release 27-ga · openjdk/jfx |url=https://github.com/openjdk/jfx/releases/tag/27-ga |access-date=2026-09-19 |website=GitHub |language=en}}</ref>"},"latest release date":{"wt":"{{Start date and age|2026|09|15}}<ref>{{Cite web|url=https://github.com/openjdk/jfx/releases/tag/27-ga |access-date=2025-09-19}}</ref>"},"latest preview version":{"wt":"28"},"latest preview date":{"wt":""},"operating system":{"wt":"[[Java virtual machine|Java]]"},"platform":{"wt":"[[Cross-platform]]"},"language":{"wt":"[[Java (programming language)|Java]]"},"genre":{"wt":"[[Application framework]]"},"license":{"wt":"[[GNU General Public License|GPL]]+[[GPL linking exception#The Classpath exception|classpath exception]]<ref name=\"openJFX\">{{cite web | url=https://openjdk.java.net/projects/openjfx/ | title=OpenJFX Project | publisher=[[Oracle Corporation]] | access-date=2011-12-07 | archive-date=2011-12-05 | archive-url=https://web.archive.org/web/20111205070900/http://openjdk.java.net/projects/openjfx/ | url-status=live }}</ref>"},"website":{"wt":"{{ubl|{{URL|wiki.openjdk.org/display/OpenJFX|wiki.openjdk.org}}|{{URL|openjfx.io}}}}"}},"i":0}}]}'>
JavaFX
DeveloperOracle Corporation
ReleaseDecember 4, 2008;17 years ago (2008-12-04)
Java platform editions

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. JavaFX places all its symbols in the namespace javafx.

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.

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.

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 discontinued by Oracle, however the development of it continued for a few years in the Visage project, finally ending in 2013.

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.

Since JavaFX 8, JavaFX has had 3D capablilities, such as dynamic lights, basic shapes, meshes, texture mapping, et cetera. these components can be integrated into scenes and subscenes.

JavaFX Mobile

edit
packageorg.wikipedia.examples; importjavafx.application.Application; importjavafx.scene.Scene; importjavafx.scene.control.Button; importjavafx.scene.layout.StackPane; importjavafx.stage.Stage; publicclass JavaFXExampleextendsApplication{ @Override publicvoidstart(StageprimaryStage){ Buttonbutton=newButton("Click Me!"); button.setOnAction(e->System.out.println("Hello from JavaFX!")); StackPaneroot=newStackPane(button); Scenescene=newScene(root,300,200); primaryStage.setTitle("JavaFX Example"); primaryStage.setScene(scene); primaryStage.show(); } publicstaticvoidmain(String[]args){ launch(args); } }

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.

Modules

edit

JavaFX is split into the following modules.

NameDescription
javafx.fxml Defines the FXML APIs in the JavaFX UI toolkit.
javafx.swing Defines JavaFX/Swing interop support APIs for the JavaFX UI toolkit.
jfx.incubator.input Incubates mechanism for customising JavaFX controls.
  1. ↑ openjdk. "Release 27-ga · openjdk/jfx". GitHub. Retrieved 2026-09-19.
  2. ↑ "JavaFX Developer Home". www.oracle.com. Archived from the original on 2019-07-12. Retrieved 2019-06-14.
  3. ↑ "Rapid Enterprise Mobile Apps: Build, Connect, Manage with Gluon". 2017-12-16. Archived from the original on 2017-12-15. Retrieved 2017-12-16.
  4. ↑ "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.
  5. ↑ "JavaFX FAQ". Oracle.com. Archived from the original on 2018-10-29. Retrieved 2019-09-24.
  6. ↑ "3D Features Planned for Version 8". Oracle Corporation. Archived from the original on 2013-05-02. Retrieved 2012-11-24.
  7. ↑ "Gluon and JavaFX". Archived from the original on 2019-04-29. Retrieved 2018-10-29.
  8. 1 2 "OpenJFX 12 Release notes". Gluon. Archived from the original on 2023-07-07. Retrieved 2023-07-06.
  9. ↑ "OpenJFX 15 Release notes". Gluon. Archived from the original on 2023-07-07. Retrieved 2023-07-06.
  10. ↑ 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.
  11. ↑ Brown, Greg (2011-08-15). "Introducing FXML" (PDF). Archived (PDF) from the original on 2012-01-31. Retrieved 2011-10-09.
  12. ↑ "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.
  13. ↑ "Oracle Java SE Support Roadmap". Oracle Technology Network. Oracle. 2020-05-13. Archived from the original on 2019-12-31. Retrieved 2020-05-31.
  14. ↑ Bair, Richard (2012-12-03). "Porting JavaFX". Mail.openjfx.dev.java.net. Archived from the original on 2014-06-20. Retrieved 2013-01-05.
  15. ↑ Bair, Richard (2013-02-16). "February Open Source Update". Oracle Corporation. Archived from the original on 2013-02-14. Retrieved 2013-02-13.
  16. ↑ 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.
  17. ↑ "Project Scene Graph home". Scenegraph.dev.java.net. Retrieved 2008-06-07.{{cite web}}: CS1 maint: deprecated archival service (link)
  18. ↑ "Will JavaFX technology be released in open source?". Archived from the original on 2008-06-12. Retrieved 2008-06-07.
  19. ↑ 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

View original on Wikipedia | Back | FazBrowse Home