(Translation) Introduction to javafx2.0

Source: Internet
Author: User

Javafx2 translation documents are reproduced in http://blog.csdn.net/somefuture

Original address http://download.oracle.com/javafx/

Javafx2.0 is the latest major upgrade and release version of javafx. Many of its new features are not compatible with. 1.3. If you want to use javafx for development, version 2.0 is recommended.

 

Create SDK

The first step to getting started with javafx is to download and install javafx on your computer.
SDK. You can install the full SDK or only the javafx runtime environment. For details, refer to the second review.

 

Create an application framework

Each javafx application has a similar framework. The main class of the program inherits the application class. The main method calls the luanch method, and the start method creates and displays the stage (stage, including the application UI ).

 

Define UI

The stage of an application interface includes one or more scenes (scene, which in turn contains controls, shapes, and graphics to build interfaces .)

 

Layout UI controls

After deciding what controls are used in the UI, use the built-in layout panel to manage the widget size and position.

 

Deployment

The javafx application runs on the desktop, browser, and network. After the application is completed, make them into jar, HTML, and JNLP files for your use.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.