Javafx ensemble Introduction

Source: Internet
Author: User

1. javafx ensemble is developed using javafx.Program, Very powerful. It demonstrates a lot of javafx functions with the source code! This is actually very similar to demos in flex.

:

Http://www.oracle.com/technetwork/java/javafx/samples/index.html

 

2. You can open it on the webpage, but it is slow, so I want to download it and deploy it on my computer.

Preview on the webpage:

 

Decompress the downloaded compressed file, open the command line, switch to the path, and run the following command: Java-jar ensamble. jar (the premise is that you have to configure the Java environment), haha, you can see the same effect!

 

3. Of course, this will not satisfy me. I want to see the ensembleSource codeWhat should I do? Although it is a netbeans project, but I love eclipse, of course, it is pilot in eclipse to try!

After trying, I found that it does not work. It lacks a dependent project sceneview, but it does not exist in the source code. I remove it from the build path and then remove jfxrt. jar is added to path, and there are two jar related to lucence

Finally, no error was reported, but an error was reported after running! It seems that a file samplesall.txt is missing.

 

In desperation, I still open netbeans 7.1! Open the project and report the following error:

Solution: it has already told me to create a platform for this project. The name must be the same as what it requires! Remember to start javafx and configure the SDK path.

 

After that, you can see small exclamation points on many files of the project. It's depressing! Let's take a look at it and find many similar problems. It seems that the javafx library has not been imported, so add it.

Click "library", add a library, create a library javafxrt, and add the JAR file. This jar is the jfxrt under the RT/lib directory in your javafx SDK. JAR file. After adding the JAR file, the project will be OK!

Right-click the project and clean up and generate the project. If there is no problem, run it! The effect is the same as the previous one! Hahaha

 

Hope you enjoy the world of javafx!

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.