What is the difference between java FX applet and java applet?


Is java FX applet faster than the traditional java applet?

2/10/2011 6:00:11 AM

Accepted Answer

As far as, I know there is nothing called JavaFX Applet. We just run our JavaFX program in browser by using Applet. In other words, we can export our JavaFX program to the web as an Applet.

Furthermore, JavaFX and Applets are not mutually exclusive, please look here and here.

An SO thread found that might clear the confusion.

5/23/2017 12:01:56 PM

To add further clarification:

  • An applet must be a subclass of the java.applet.Applet class. The Applet class provides the standard interface between the applet and the browser environment. [1]

  • Swing provides a special subclass of the Applet class called javax.swing.JApplet. The JApplet class should be used for all applets that use Swing components to construct their graphical user interfaces (GUIs). [1]

  • You can however embed JavaFX GUI elements inside your Swing-based JApplet, making your applet a FXApplet

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow