Is there an alternative to making educational Java applets for physics simulations like projectile motion, gravity, etc?
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.
An applet is a panel (java. awt. Panel), and, as we learned earlier, a panel is also a component. >>> applet.class.superclass <jclass java.awt.Panel at -731859681> So, if an applet is a panel, and a panel is a component, an applet is also a component (and thus a component container).
Java applets were deprecated by Java 9 in 2017. Java applets were usually written in Java, but other languages such as Jython, JRuby, Pascal, Scala, NetRexx, or Eiffel (via SmartEiffel) could be used as well. Java applets run at very fast speeds and until 2011, they were many times faster than JavaScript.
Applets are a technology that are very much of their time, and they have not aged well. The technology proved to be very difficult to evolve, and so applets have not been considered to be a modern development platform for many years now.
If you want it to run in a browser, you could use PyJamas - which is a Python-to-Javascript compiler and set of tools.
I'm not sure how well it is maintained these days, though.
In this day and age, you might look to the HTML 5 canvas & JS.
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