★ wanayoo — archive 1999 http://blogs.oracle.com/java/tags/clientNouvelle recherche | Portail wanayoo

Monday Oct 17, 2011

JavaFX 2.0 Arrives and is Open Sourced

JavafxAmong the big news at JavaOne 2011 was the release of JavaFX 2.0 and announcement of its open source status. As Oracle’s Chief Architect, Client Java Platform Richard Bair observed, “We think this is going to be a really big deal in the industry.” JavaFX 2.0, touted as the next step in the evolution of Java as a rich client platform, is designed to provide a modern Java environment that shortens development time and eases the deployment of data driven-business and enterprise client applications.

Its key features include:

• Java APIs for JavaFX

• FXML -- an XML-based markup language for defining user interfaces

• Seamless integration into Swing applications

• High-performance hardware accelerated graphics

• Embedding of web content into JavaFX

• High-performance media engine

• Improved UI controls library

JavaFX 2.0 enables developers to leverage their existing Java skills and tools to develop JavaFX applications. It offers a clean separation of application UI and logic and simplifies code maintenance while integrating Web content and media seamlessly in Java applications. Developers can more easily create scalable, graphics-rich applications without performance penalties, build sophisticated user interfaces, extend existing Swing applications, and deploy applications in the browser, as desktop, or Web Start applications.

Java APIs for JavaFX include:

• End-to-end Java development

• Java language features—generics, annotations, multi-threading

• Reduced static footprint of runtime and applications

• Fluent API design for UI construction

• Development in alternative languages (e.g., JRuby, Groovy) with JavaFX

• Leverage sophisticated Java IDEs, debuggers and profilers

• Java APIs preserve convenient JavaFX Script features (e.g., bind)

Other features to take note of in JavaFX 2.0:

FXML

• Scriptable, XML-based markup language for defining user interfaces

• Convenient alternative to developing UI programmatically in Java

• Easy to learn and intuitive for developers familiar with web technologies or other markup based UI technologies

• Powerful scripting feature allows embedding scripts within a FXML file. Any JVM scripting language can be used, including JavaScript, Groovy, and Clojure, among others

New Graphics Pipeline for Modern GPUs

• New hardware accelerated graphics pipeline (Prism)

• New windowing toolkit (Glass) for Prism

• Java2D software pipeline for unsupported graphics hardware

• High-level support for making rich graphics simple: Shadows, Blurs, Reflections, Effects, 2D and 3D transforms

Rich Set of UI Controls

• Over 50 components for form-based UI, including charts, layout and form controls

• CSS3+ skinning and layout of UI controls

• Advanced UI controls, including table, tree view, rich text editor

Web Component

• Embed Web content in JavaFX applications

• HTML and JavaScript rendering based on Webkit

• DOM access and manipulation from Java

Browser Plug-in Refreshed for JavaFX 2.0

• Loading of JavaFX applets based on Prism

• Preloader for JavaFX applets for improved user experience

Powerful Properties Model

• New collections ObservableList, Sequence and ObservableMap

• New design and implementation of bean properties

• Low level binding API for high performance, low footprint bindings

• High level binding API for simple usage

Improved Animation Engine

• Optimized implementation of transitions

• Complete overhaul of API to simplify usage and in preparation of optimized and more stable implementation

Approximately 50 JavaFX 2.0 sessions can be found at JavaOne given by leading JavaFX movers and shakers. JavaFX is the next step in the evolution of Java as a rich client platform. Congratulations to all involved!  


Getting Started with Embedded Java -- Sense, Control, Connect, Store, Sync

At JavaOne 2011, Terrence Barr, Senior Technologist, Mobile & Embedded, Oracle Germany, presided over a two-hour HOL (Hands-On-Lab) on Monday in which he taught developers how to build an embedded Java solution that senses and controls the environment, stores data, and connects to back-end databases for synchronization and further processing. The session offered considerable detail along with step-by-step exercises as participants learned how to create the embedded EnviroTracker system and application which tracks and processes environmental data. The application interfaces with a microcontroller to read sensor input (ambient light brightness), to control output (and LED), and then further processes the sensor data.

The lab focused on:
• The benefits of Java technology in the embedded space
• The components of embedded Java platforms
• Setting up an embedded Java platform
• Interfacing between the embedded Java platform, the microcontroller, and I/O
• Accessing and controlling I/O from Java
• Processing sensor data

Barr took developers through seven basic tasks or exercises:

1. Create the EnviroTracker
2. Install the OJEC (Oracle Java ME Embedded Client) on the Development Host
The Oracle Java Micro Edition Embedded Client (OJEC) implements the CDC Platform configuration.
3. Develop and Test Your First Embedded Java Application..
4. Install OJEC on the Target Platform and Run Your Java Application
5: Understand I/O and the Arduino Microcontroller
6: EnviroTracker V1: First Contact
7: EnviroTracker V2: Continuous Monitoring and Processing

By the end of a rigorous and demanding, but satisfying two hours, attendees had built a real-world embedded system and created the EnviroTracker Application to track environmental sensor data. They learned how to install and use embedded Java runtimes and tools, and how to interface with I/O devices and microcontrollers from Java applications.

The take home message: Creating sophisticated embedded Java systems and applications is easy due to the platform independence of the Java language and runtime, the scalability of pre-existing Java skills to embedded development, and the comprehensive support provided by mature and feature-rich developer tools.

For more info, go to Terrence Barr's blog.

About

Insider News from the Java Team at Oracle!

duke
javeone logo
JavaOne Conference 2011

Links


Search

Archives
« October 2011
SunMonTueWedThuFriSat
      
1
6
7
8
9
12
13
14
15
16
19
20
21
22
23
24
25
26
27
28
29
30
31
     
Today