Reputation: 12176
Is java FX applet faster than the traditional java applet?
Upvotes: 7
Views: 7244
Reputation: 2169
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
Upvotes: 0
Reputation: 39907
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.
Upvotes: 6