开发者

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

开发者 https://www.devze.com 2023-02-09 10:09 出处:网络
Is java FX applet faster t开发者_运维百科han the traditional java applet?As far as, I know there is nothing called JavaFX Applet. We just run our JavaFX program in browser by using Applet. In other wo

Is java FX applet faster t开发者_运维百科han the traditional java applet?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号