JavaFX and Swing

Source: Internet
Author: User

Although Swing can redraw paintComponent () or Nimbus package-based L & F to rewrite a specific (custom UIDefaults map and then add it to the clientProperty of a specific control) or all JButton styles of the same type (using UIManager directly. put (<key>, <value>), but it is not directly and conveniently implemented by JavaFX.

In addition, JavaFX transfers all style management to a separate CSS file, so you only need to load different CCS skin files when switching skin.

In addition, JavaFX introduces the FXML interface descriptive language, and then Application Logic is implemented in Java Controller. In this way, the Application Interface Design and Application Logic Design are completely separated. The official Swing web page states that although some controls are designed with reference to the idea of separation of Model and View in MVC, most controls are indivisible.

JavaFX also added special effects on Text and various Node Effect, added Animation, and added support for a wider range of audio and video formats.

 

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.