So far, we have seen two ways to get your desktop applications deployed as either browser-embedded applets or desktop Web Start. However, none is cooler than drag-to-install. What is that? Well, it is a simple concept: enable the user to drag a running applet from the web page unto the desktop to install it automatically. In this recipe, we are going to look at how to create an application that can be deployed using the drag-to-install feature of the new Java Plugin for browsers.
For this recipe, we will create a simple JavaFX application, which we will build using the javafxpackager
and deploy it as an applet. If you are not familiar with how to do this, review previous recipe Building and packaging your app with javafxpackager. Discussions in this recipe will also include topics covered in the recipes Packaging your app to be Web Start(ed) and Packaging your app as an applet.