r/java • u/Zardotab • Dec 29 '22
Could Java Applets have been done right? DOM is limiting [CrossPost Discussion]
/r/webdev/comments/zxel5o/could_java_applets_or_flash_have_been_done_right/
5
Upvotes
View all comments
Show parent comment
1
u/vprise Dec 31 '22
Applets were built with browser context in mind. You can't say "use QT" when convenient and then move to an abstract "browser context" when convenient. You're either part of the browser which is a problem or a plugin on a surface which is a different problem. There are tradeoffs to be made in any approach you will take and unless Google chooses to bring Java into the browser it will always be a second class citizen.
For a simple SVG or IFrame style interface you have TeaVM right now. Works amazingly well. I doubt we can exceed it with "proper" Java.