Is JavaFX technology for building rich internet applications (RIA) a direct replacement for Java Applets?
Replace the Java applet with a web application written in a programming language with broad browser support. Transition the web-based applet into a full Java Web Start web-launched desktop application.
Java fx, Swing, and AWT are all toolkits that let you build GUIs (Graphical User Interfaces). Applets are a program type that lets you run your Java code on the internet. It isn't a toolkit. id use javafx as its the most modern one.
Components required to run Applets on non-Windows platforms are being removed starting July 2020. Web Start has been included in the Oracle Java Runtime Environment (JRE) since 2001. It is launched automatically when a Java application using Web Start technology is downloaded for the first time.
Java Applet and WebStart functionality, including the Applet API, The Java plug-in, the Java Applet Viewer, JNLP and Java Web Start including the javaws tool are all deprecated in JDK 9 and will be removed in a future release.
No, JavaFX is not a replacement for applets. In fact, the idea is that you write applets that use JavaFX to things like what you can do with Adobe Flash or Microsoft Silverlight.
So rather than replace applets, it's expected that JavaFX might make applets popular again.
edit (08/15/2019) my answer above is 10 years old - things have changed. Applets are not supported anymore; Oracle does not provide a Java browser plug-in that can run applets with current versions of Java. Don't write code that uses applets anymore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With