JavaFX. JavaFX Overview Release E

Similar documents
JavaFX. JavaFX System Requirements Release E

JavaFX. JavaFX System Requirements Release E

JavaFX. JavaFX 2.2 System Requirements Release 2.2 E

Copyright 1998, 2009, Oracle and/or its affiliates. All rights reserved.

Defining Constants and Variables for Oracle Java CAPS Environments

JavaFX. JavaFX 2.1 Release Notes Release 2.1 E April 2012 Provides late-breaking information and known issues for the JavaFX 2.1 release.

New Features in Primavera Professional 15.2

JavaFX. JavaFX Scene Builder Release Notes Release 2.0 Early Access E

Oracle Enterprise Manager. 1 Introduction. System Monitoring Plug-in for Oracle Enterprise Manager Ops Center Guide 11g Release 1 (

JavaFX. Getting Started with JavaFX Scene Builder Release 1.1 E

JD Edwards EnterpriseOne. Overview. Prerequisites. Web Client for ipad Quick Start Guide Release 8.98 Update 4, Service Pack 5

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need. Installing and Updating Local Software Packages 12c Release

Oracle Database Mobile Server

PeopleSoft Fluid Icon Standards

Importing an SNA Custom Handshake Class

Report Management and Editor!

Oracle Communications Configuration Management

Oracle Fusion Middleware. 1 Introduction. 1.1 Supported Functionality and Intended Use. 1.2 Limitations

Oracle Enterprise Manager Ops Center. Introduction. Creating Oracle Solaris 11 Zones Guide 12c Release 1 ( )

1 Understanding the Cross Reference Facility

Oracle Hospitality OPERA Exchange Interface Cloud Authentication. October 2017

Oracle Enterprise Manager Ops Center

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need

General Security Principles

Oracle Enterprise Manager

Oracle Hospitality Query and Analysis Languages and Translation Configuration Guide. March 2016

Oracle WebCenter Portal. Starting Points for Oracle WebCenter Portal Installation

Oracle Utilities Advanced Spatial and Operational Analytics

Recipe Calculation Survey. Materials Control. Copyright by: MICROS-FIDELIO GmbH Europadamm 2-6 D Neuss Date: August 21 st 2007.

Database Change Reference Release 6.3

What s New for Cloud at Customer What's New for the Cloud Services on Oracle Cloud at Customer New Documentation for Oracle Cloud at Customer

Oracle Banking Channels Bank User Base

What s New for Oracle Cloud Stack Manager. Topics: July Oracle Cloud. What's New for Oracle Cloud Stack Release

Oracle Enterprise Data Quality for Product Data

Configuring Oracle Java CAPS Master Index (Repository) Connectivity and Environments

Oracle Retail MICROS Stores2 Functional Document Sales - Receipt List Screen Release September 2015

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need. Creating vservers 12c Release 1 ( )

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need. Hardware and Software Configuration

Managing Zone Configuration

Oracle Cloud What's New for Oracle WebCenter Portal Cloud Service

JavaFX. Working with the JavaFX Scene Graph Release 8 E March 2014 Learn about the concept of a scene graph and how it is used in JavaFX.

Oracle Hospitality MICROS Commerce Platform Release Notes Release Part Number: E December 2015

Oracle Database Express Edition

Oracle Enterprise Manager Ops Center. Introduction. Provisioning Oracle Solaris 10 Operating Systems 12c Release 2 ( )

Oracle Hospitality Suite8 Export to Outlook User Manual Release 8.9. July 2015

Oracle Utilities Work and Asset Management

Oracle Simphony Venue Management (SimVen) Installation Guide Release Part Number: E

New Features in Primavera P6 16.2

PeopleSoft Fluid Required Fields Standards

Oracle Fusion Middleware

Oracle Enterprise Single Sign-on Logon Manager How-To: Configuring ESSO-LM Event Logging with Microsoft SQL Server 2005 Release

Oracle Database Firewall. 1 Downloading the Latest Version of This Document. 2 Known Issues. Release Notes Release 5.

Oracle Fusion Middleware Oracle Stream Analytics Release Notes. 12c Release ( )

Oracle Agile Engineering Data Management

JavaFX. Oracle JavaFX Applying Transformations in JavaFX Release 2.1 E

Oracle WebCenter Portal

Materials Control. Installation MC POSWebService. Product Version Joerg Trommeschlaeger. Date: Version No. of Document: 1.

Contents About This Guide... 5 Installing P6 Professional API... 7 Authentication Modes... 9 Legal Notices... 14

Oracle Utilities Work and Asset Management Integration to Primavera P6 Enterprise Project Portfolio Management

Oracle Enterprise Manager Ops Center. Overview. What You Need. Create Oracle Solaris 10 Zones 12c Release 3 ( )

JD Edwards EnterpriseOne Licensing

Oracle Tuxedo Mainframe Adapter for SNA

Materials Control. Account Classes. Product Version Account Classes. Document Title: Joerg Trommeschlaeger

Microsoft Active Directory Plug-in User s Guide Release

Export generates an empty file

Oracle Utilities Opower Custom URL Configuration

Designing with Oracle Java CAPS Communication Adapters

Oracle Human Capital Management Cloud Using the HCM Mobile Application. Release 13 (update 18C)

Oracle Utilities Work and Asset Management

Oracle Revenue Management and Billing. Reporting Installation Guide. Version Revision 1.0

Oracle Enterprise Manager Ops Center. Introduction. Creating Oracle Solaris 11 Zones 12c Release 2 ( )

JavaFX. Skinning JavaFX Applications with CSS Release 2.2 E

Oracle Exadata Healthchecks Plug-in Contents

Oracle. Field Service Cloud Using the Parts Catalog

Oracle. Field Service Cloud Using Android and ios Mobile Applications 18B

Oracle Linux. UEFI Secure Boot Signing Key Update Notice

Module Code Entries Utility Oracle FLEXCUBE Universal Banking Release [December] [2016]

Introduction to Auto Service Request

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need

Oracle Fusion Middleware. 1 Contents. 2 Where to Find Oracle WebLogic Tuxedo Connector Samples. 3 Configuring the Oracle WebLogic Tuxedo Connector

Oracle Hospitality BellaVita Adding a New Language Release 2.7. September 2015

Oracle Fusion Middleware Creating Domain Templates Using the Domain Template Builder. 12c ( )

Oracle Payment Interface Installation and Reference Guide Release E April 2018

PeopleSoft Fluid Related Action Standards

Oracle Cloud Getting Started with Oracle WebCenter Portal Cloud Service

Oracle Retail XBR i Loss Prevention Release Notes Release

Oracle Fusion Middleware. 1 Oracle Team Productivity Center Server System Requirements. 2 Installing the Oracle Team Productivity Center Server

Overview of the Plug-In. Versions Supported

Oracle Utilities Customer Self Service

Oracle Utilities Meter Data Management Release Utility Reference Model Maintain Generic Usage Subscription

OKM Key Management Appliance

Oracle Enterprise Data Quality. 1 Overview. 2 Prerequisites. Siebel Connector Installation Guide 11g Release 1 ( )

Oracle Endeca Guided Search Compatibility Matrix

Oracle Enterprise Manager Ops Center

Oracle Utilities Work and Asset Management

Materials Control Recipe Reduction based on Article Defaults

JavaFX. JavaFX Interoperability with SWT Release 2.2 E

Oracle Governance, Risk and Compliance Controls. Deployment with WebLogic Release 8.6.0

Oracle Cloud Using Oracle E-Business Suite Adapter Endpoint Configuration Wizard. Release 17.3

Oracle Communications Policy Management Configuring NetBackup for Upgrade Method of Procedure

Transcription:

JavaFX JavaFX Overview Release 2.2.21 E20479-06 April 2013 Learn about the JavaFX 2 and later technology, read a feature summary, explore the sample applications, and follow the high-level steps to create and deploy a JavaFX application.

JavaFX Overview, Release 2.2.21 E20479-06 Copyright 2011, 2013 Oracle and/or its affiliates. All rights reserved. Primary Author: Monica Pawlan Contributing Author: Contributor: This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are commercial computer software or commercial technical data pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License \(December 2007\). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark licensed through X/Open Company, Ltd. This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.

Contents 1 What Is JavaFX? JavaFX Applications... 1-1 Availability... 1-2 Key Features... 1-2 What Can I Build with JavaFX?... 1-3 How Do I Run a Sample Application?... 1-3 How Do I Run a Sample in an IDE?... 1-4 How Do I Create a JavaFX Application?... 1-5 How Do I Deploy a JavaFX Application?... 1-5 Resources... 1-5 iii

iv

1 1What Is JavaFX? JavaFX is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms. JavaFX Applications Availability Key Features JavaFX Applications What Can I Build with JavaFX? How Do I Run a Sample Application? How Do I Run a Sample in an IDE? How Do I Create a JavaFX Application? How Do I Deploy a JavaFX Application? Resources See the JavaFX Architecture document to learn about the JavaFX platform architecture and to get a brief description of the JavaFX APIs for media streaming, web rendering, and user interface styling. Written as a Java API, JavaFX application code can reference APIs from any Java library. For example, JavaFX applications can use Java API libraries to access native system capabilities and connect to server-based middleware applications. The look and feel of JavaFX applications can be customized. Cascading Style Sheets (CSS) separate appearance and style from implementation so that developers can concentrate on coding. Graphic designers can easily customize the appearance and style of the application through the CSS. If you have a web design background, or if you would like to separate the user interface (UI) and the back-end logic, then you can develop the presentation aspects of the UI in the FXML scripting language and use Java code for the application logic. If you prefer to design UIs without writing code, then use JavaFX Scene Builder. As you design the UI, Scene Builder creates FXML markup that can be ported to an Integrated Development Environment (IDE) so that developers can add the business logic. What Is JavaFX? 1-1

Availability Availability JavaFX 2.2 and later releases are fully integrated with the Java SE 7 Runtime Environment (JRE) and the Java Development Kit (JDK). Because the JDK is available for all major desktop platforms (Windows, Mac OS X, and Linux), JavaFX applications compiled to JDK 7 and later also run on all the major desktop platforms. The cross-platform compatibility enables a consistent runtime experience for JavaFX applications developers and users. Oracle ensures synchronized releases and updates on all platforms and offers an extensive support program for companies that run mission-critical applications. On the JDK download page, you can get a zip file of JavaFX sample applications. The sample applications provide many code samples and snippets that show by example how to write JavaFX applications. See "How Do I Run a Sample Application?" for more information. Key Features JavaFX 2.2 and later releases have the following features: Java APIs. JavaFX is a Java library that consists of classes and interfaces that are written in native Java code. The APIs are designed to be a friendly alternative to Java Virtual Machine (Java VM) languages, such as JRuby and Scala. FXML and Scene Builder. FXML is an XML-based declarative markup language for constructing a JavaFX application user interface. A designer can code in FXML or use JavaFX Scene Builder to interactively design the graphical user interface (GUI). Scene Builder generates FXML markup that can be ported to an IDE where a developer can add the business logic. WebView. A web component that uses WebKitHTML technology to make it possible to embed web pages within a JavaFX application. JavaScript running in WebView can call Java APIs, and Java APIs can call JavaScript running in WebView. Swing interoperability. Existing Swing applications can be updated with new JavaFX features, such as rich graphics media playback and embedded Web content. Built-in UI controls and CSS. JavaFX provides all the major UI controls required to develop a full-featured application. Components can be skinned with standard Web technologies such as CSS Canvas API. The Canvas API enables drawing directly within an area of the JavaFX scene that consists of one graphical element (node). Multitouch Support. JavaFX provides support for multitouch operations, based on the capabilities of the underlying platform. Hardware-accelerated graphics pipeline. JavaFX graphics are based on the graphics rendering pipeline (Prism). JavaFX offers smooth graphics that render quickly through Prism when it is used with a supported graphics card or graphics processing unit (GPU). If a system does not feature one of the recommended GPUs supported by JavaFX, then Prism defaults to the Java 2D software stack. High-performance media engine. The media pipeline supports the playback of web multimedia content. It provides a stable, low-latency media framework that is based on the GStreamer multimedia framework. Self-contained application deployment model. Self-contained application packages have all of the application resources and a private copy of the Java and 1-2 JavaFX Overview

How Do I Run a Sample Application? JavaFX runtimes. They are distributed as native installable packages and provide the same installation and launch experience as native applications for that operating system. See the Deploying JavaFX Applications document. What Can I Build with JavaFX? With JavaFX, you can build many types of applications. Typically, they are network-aware applications that are deployed across multiple platforms and display information in a high-performance modern user interface that features audio, video, graphics, and animation. Table 1 1 shows images of a few of the sample JavaFX applications that are included with the JavaFX 2.2.n release. You can launch some of the samples in the bundle on the JavaFX 2 Samples Showcase at http://www.oracle.com/technetwork/java/javafx/samples/index.html. Table 1 1 Sample Application Sample JavaFX Applications Description JavaFX Ensemble Ensemble provides a gallery of samples that demonstrate various JavaFX features, such as animation, charts, and controls. You can view the running sample, read a description, copy the source code, and follow links to the API documentation. Sales Dashboard (DataApp) DataApp is a client-server application for a fictional global automobile company called Henley Car Sales. Automobile sales are simulated on an EJB server using JavaDB, and the data is available via Derby and a RESTful web service. The client demonstrates a variety of data presentations by using a mix of FXML and JavaFX. Note: The DataApp sample has multiple NetBeans projects and cannot be run without some additional setup. The DataAppReadme.html file and the NetBeans project file are in the src\dataapp directory. SwingInterop Sample This Swing application shows how Swing and JavaFX can be combined. It uses JavaFX components to implement a chart and a simple browser. A JTable Swing component is used for the table. How Do I Run a Sample Application? The steps in this section explain how to download and run the sample applications that are available as a separate download with the Java Platform (JDK 7). What Is JavaFX? 1-3

How Do I Run a Sample in an IDE? Note: Before you can run a sample JavaFX application, you need to have the JavaFX runtime libraries on your machine. Before you proceed with these steps, either install the latestest version of the JDK 7 or the lastest version of the JRE. To download and run the sample applications: 1. Go to the Java SE Downloads page at http://www.oracle.com/technetwork/java/javase/downloads/index.html. 2. Scroll down to locate the JDK 7 and JavaFX Demos and Samples section. 3. Click the Demos and Samples Download button to go to the downloads page. 4. On the Java SE Development Kit 7 Downloads page, scroll down to the JavaFX Demos and Samples Downloads section. 5. Download the zip file for the correct operating system and extract the files. The javafx-samples-2.2.x directory is created and contains the files for the available samples. The NetBeans projects for the samples are in the javafx-samples-2.2.x\src directory. 6. Double-click one of the executable files for a sample. For example, to run the Ensemble sample application, use any of the following methods: To run Ensemble as a standalone application, double-click the Ensemble.jar file. To run Ensemble in the browser, double-click the Ensemble.html file. To run Ensemble as a Web Start application, either double-click the Ensemble.jnlp file or double-click the Ensemble.html file. JavaScript code engages the Java Deployment Toolkit to ensure the user environment has the required Java and JavaFX runtimes. How Do I Run a Sample in an IDE? You can use any Java development tools to develop JavaFX applications. The following steps explain how to view and run the source code in the NetBeans IDE. To view and run the source code in an IDE: 1. Download the samples as described above and extract the files. 2. From a NetBeans 7.2 or later IDE, load the project for the sample you want to view. a. From the File menu, select Open Project. b. In the Open Project dialog box, navigate to the directory that lists the samples. The navigation path looks something like this:..\javafx_samples-2_2_x-<platform>\javafx-samples-2.2.x\src c. Select the sample you want to view. d. Click the Open Project button. 1-4 JavaFX Overview

Resources How Do I Create a JavaFX Application? Because JavaFX applications are written in the Java language, you can use your favorite editor or any integrated development environment (IDE) that supports the Java language (such as NetBeans, Eclipse, or IntelliJ IDEA) to create JavaFX applications. To create JavaFX applications: 1. Go to the Java SE Downloads page at http://www.oracle.com/technetwork/java/javase/downloads/index.html to download the Oracle JDK 7 with JavaFX 2.2.n support. Go to the JavaFX Release Documents page for the system requirements and installation instructions for the JavaFX SDK version that you plan to use. 2. Use the Getting Started with JavaFX tutorial to create a simple application that demonstrates animation. 3. Download the JavaFX Scene Builder from the JavaFX Downloads page at http://www.oracle.com/technetwork/java/javafx/downloads/index.html. JavaFX Scene Builder is a visual layout tool that enables you to quickly design JavaFX application UIs without coding. Users can drag and drop UI components to a work area, modify their properties, apply style sheets, and integrate the resulting code with their application logic. 4. Follow the Getting Started with JavaFX Scene Builder tutorial to learn more. How Do I Deploy a JavaFX Application? JavaFX applications can be deployed in any of the following execution modes:. Run as a standalone program. The application package is available on a local drive. Launch it by using a Java launcher, such as java -jar MyApp.jar, or by double-clicking the application JAR file. Launch from a remote server with Web Start. Click a link in a web page to start the application from a remote web server. Once you have downloaded it, you can also start a Web Start application from a desktop shortcut. Embed in a web page. JavaFX content is embedded in the web page and hosted on a remote web server. Launch as a self-contained application. The application is installed on the local drive and runs as a standalone program using a private copy of Java and JavaFX runtimes. You can launch the application in the same way as other native applications for that operating system, for example by using a desktop shortcut or menu entry. To deploy a JavaFX application: 1. Decide which execution mode you want to use to deploy the application. 2. Read the Deploying JavaFX Applications document for detailed instructions. Resources Use the following resources to learn more about the JavaFX technology. What Is JavaFX? 1-5

Resources Download the latest JDK 7 release and the JavaFX samples from the Java SE Dowloads page at: http://www.oracle.com/technetwork/java/javase/downloads/index.html. Read the JavaFX Architecture document. Browse JavaFX tutorials and articles for developers. Review JavaFX 2 Features, the JavaFX FAQ, and the JavaFX Roadmap. 1-6 JavaFX Overview