Media: audio (mp3, wav, aiff), video (flv) and image.Swing interoperability: You can use Swing UI in JavaFX application.Support FXML: a XML-based declarative language to define the structure of the user interface separated from the application code.Starting from JDK 8, JavaFX is part of JDK. From JavaFX 2.0, JavaFX is written in Java (no need to learn a new language).But for writing new Java applications, JavaFX is recommended as it offers a much simpler way to create desktop applications, and you can write more powerful applications with much less code. Oracle will continue to maintain the Swing library but will not enhance it. Starting from JDK 8 (2014), JavaFX was part of JDK (as JavaFX 8). They enhanced it as the new way to develop user interfaces, intended to replace Swing. When Oracle acquired Sun Microsystems, they killed off JavaFX as a scripting language but added its functionality into the Java Language as JavaFX 2.0 (2011). It is a totally new language and never really caught on with Java developers. One of these was a scripting language called JavaFX Script 1.0 (2008) which allows developers to build much more complex user Interfaces. Sun Microsystems tried several ways to make it easier to create Java GUI applications. But many developers felt Swing was over-complex and Java on the desktop never really took off as it did on the server. To support GUI programming, Java introduced AWT (Abstract Windowing Toolkit) in JDK 1.1 (1997), and Swing in JDK 1.2 (1998). Sun Microsystems created the Java Programming Language and presented JDK 1.0 in 1995/96. Moreover, browsers (such as Firefox) has stopped supporting plug-ins (such as Java Plug-in for Applets). However, the trend today is to use HTML5/JavaScript-based, instead of plug-in-based framework. JavaFX was originally targeted for Rich Interface Application (RIA, introduced in 2002), i.e., GUI webapp delivered thru a browser's plugin (competing with Adobe Flash, Microsoft Silverlight and Java Applets). JavaFX is a set of Java graphics libraries for creating Java GUI applications, just like Java AWT and Swing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |