Sunday 21 August 2011

JavaFX

JavaFX

JavaFX is the next step in the evolution of Java as a rich client platform. It is designed to provide a lightweight, hardware-accelerated Java UI platform for enterprise business applications. With JavaFX, developers can preserve existing investments by reusing Java libraries in their applications. They can even access native system capabilities, or seamlessly connect to server-based middleware applications.

JavaFX provides a unified development and deployment model for building rich client applications that integrate rich immersive media such as audio and video, graphics, rich text and web services. JavaFX allows creative developers to program in a visual context thus helping them to bring their ideas to life quicker and better. JavaFX is a rich client platform for building cross-device applications and content. JavaFX Script is a new programming language from Sun for creating rich media and interactive content which is tightly integrated with Java, as the name indicates.

The JavaFX Script gives developers the platform to easily develop content-rich applications for the various devices, including set-top boxes, mobile gadgets, Blu-ray discs and desktops. Whereas, JavaFX Mobile is a complete software system meant for mobile devices. It is offered via OEM licenses to carriers, mobile manufacturers, and other companies.

The JavaFX will make it simpler than ever to build and quickly deploy rich Internet applications and interactive content. JavaFX Script will allow developers to develop RIAs and next-generation services across virtually any device.

JavaFX is a new platform for creating and deploying rich Internet applications inside a lightweight Java virtual machine. JavaFX Studio works as an Eclipse plugin for developing and deploying JavaFX applications. JavaFX Studio comes with numerous features and wizards to make JavaFX application development better.

Deployed on billions of devices, developers can leverage the power, maturity, performance and ubiquity of the Java Virtual Machine, a proven, mature high-performance platform. JavaFX applications can take advantage of performance enhancing features of Java such as the HotSpot virtual machine, garbage collector, and advanced set of libraries. JavaFX also provides advanced graphics, audio and video rendering with support for hardware acceleration.

JavaFX makes it easy to integrate video, audio, graphics, animation and rich text. Applications can combine audio/video and 2D graphics with 3D perspective transform (true 3D graphics coming soon) and rich text, with compelling visual effects and transformations. Advanced animation features include timelines, keyframe animation, tweening, and path based animation that animates objects to follow any desired motion path. JavaFX 1.2 also introduces a rich set of User Interface controls to accelerate content creation!

JavaFX allows designers and developers to simply and swiftly combine graphics and media assets to unleash their creative potential with significantly reduced effort. Using the JavaFX Production Suite, a suite of tools and plugins for Adobe Photoshop and Adobe Illustrator, designers seamlessly create and export graphics from their existing tools into the JavaFX format. The plugins allow One-click conversion and provide a preview enabling designers to make any necessary modifications prior to conversion.

The developers can preserve existing investment by reusing Java libraries in JavaFX applications. JavaFX allows access to device level capabilities on Mobile Devices. From a development standpoint, Java developers can continue to leverage the global Java ecosystem with its vast knowledge-base and marketplace. JavaFX will be the force behind delivering compelling "brand name" content and richer experiences that differentiate offerings while leveraging their existing technology investments.

You can Drag-to-Install JavaFX applications simply by dragging them out of your browser - you can then re-launch the applications directly from your desktop! Drag-to-Install simplifies the distribution of content to end-users and provides them with access when and where they want.

The JavaFX SDK features the JavaFX Mobile Emulator to enable developers to begin creating advanced and expressive mobile content today. Thanks to a Common API Profile implemented across the Mobile and Desktop runtimes, developers can even create applications for both of these screens using a single, unified source-base enabling more people to create more content across more devices!

Advantages with JavaFX Script:

  • Maximizes developer productivity
  • Zero loss of functionality across devices
  • Requires less code
  • Ensures faster development cycles
  • Provides an intuitive language design



Why Use JavaFX?
JavaFX provides a powerful Java-based UI platform capable of handling large-scale data-driven business applications. JavaFX applications are completely developed in Java, one of the most widely deployed technologies with one of the largest developer communities in the world, while leveraging the power of standards-based programming practices and design patterns. JavaFX provides a rich set of UI controls, graphics and media API with high-performance hardware-accelerated graphics and media engines to simplify development of immersive visual applications

Common profile.
JavaFX is 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 JavaFX Desktop profile includes Swing and advanced visual effects.

Drag-to-Install.
From the point of view of the end user “Drag-to-Install” allows them to drag a JavaFX widget (or application residing in a website and is visible within the browser window) 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 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”.

Integrating graphics created with third-party tools.
JavaFX includes 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 layers and structure of the graphics. Developers can then easily add animation or effects to the static graphics imported. There is also an SVG graphics converter tool (a.k.a. Media Factory) that allows for importing graphics and previewing assets after the conversion to JavaFX format.

Design highlights

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

JavaFX platform components

Current release of JavaFX platform includes the following components:
  1. The JavaFX SDK: JavaFX compiler and runtime tools. Graphics, media web services, and rich text libraries
  2. NetBeans IDE for JavaFX: NetBeans with drag-and-drop palette to add objects with transformations, effects and animations plus set of samples and best practices. For Eclipse users there is a community-supported plugin hosted on Project Kenai
  3. Tools and plugins for creative tools (a.k.a. Production Suite): Plugins for Adobe Photoshop and Adobe Illustrator that can export graphics assets to JavaFX Script code, tools to convert SVG graphics into JavaFX Script code and preview assets converted to JavaFX from other tools

History

JavaFX Script, the scripting component of JavaFX, began life as a project by Chris Oliver called F3
Sun Microsystems first announced JavaFX at the JavaOne Worldwide Java Developer conference on 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. On December 4, 2008 Sun released JavaFX 1.0.

JavaFX 1.1

JavaFX for mobile development was finally made available as part of the JavaFX 1.1 release announced officially on February 12, 2009.

JavaFX 1.2

JavaFX 1.2 was released at JavaOne on June 2, 2009. This release introduced:
  • Beta support for Linux and Solaris,
  • Built-in controls and layouts,
  • Skinnable CSS controls,
  • Built-in chart widgets,
  • JavaFX I/O management, masking differences between desktop and mobile devices,
  • Speed improvements.
  • Windows Mobile Runtime with Sun Java Wireless Client.

JavaFX 1.3

JavaFX 1.3 was released on April 22, 2010. This release introduces:
  • Performance improvements
  • Support of additional platforms
  • Improved support for user interface controls

 

    No comments:

    Post a Comment