JavaFX preface: javafx

Source: Internet
Author: User

JavaFX preface: javafx

I did JavaEE development in an Internet company, and the company developed mobile products, but there was no PC-end products, so the leaders assigned the task to the author.

When I use Java to develop a PC client, my first response is to use the swing API. However, the requirement of the product is that the client can embed a browser engine to render webpage content. Therefore, I accidentally discovered and learned about JavaFX through Baidu.

After compiling some small demos, it is found that JavaFX is indeed better than swing:

1. Window and component styles. JavaFX is more beautiful than swing, and JavaFX supports CSS styles.

2. Put the static resource file under the src project. After JavaFX is packaged into a jar file, the resource file cannot be found, and swing will encounter this problem.

3. JavaFX built-in WebView API can render html to read webpages. swing does not seem to have. (Swt has)

The above is a summary of JavaFX and swing.

After two months of hard work, I completed the task. The next few blog posts will record the problems, solutions, and experiences encountered during my work during this period!

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.