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
2
u/Zardotab Dec 30 '22 edited May 05 '23
I think you are misunderstanding me. A browser is a desktop application (or a native one if on a phone). Think about it. When you build a browser (or browser add-on), you need a UI library of some kind. Chrome has to have a GUI engine that runs on the desktops Chrome is installed on.
As far as integrating such into an existing HTML browser, it depends heavily in the specific architecture used by the browser vendor.
If by chance integration is difficult, the GUI browser (applet engine?) may have to be a separate application. As a compromise, a browser could launch the GUI/applet browser similar to how say Chrome launches a PDF viewer if you click on a link with a ".pdf" extension. Perhaps the extension can be ".gui" so that if you click on "foo.gui", the GUI browser/applet opens and displays (renders) the foo.gui file. And you could also type "www.guis-are-wonderful.com/foo.gui" into the address bar of the GUI browser and get it rendered.