Michael,

Java Applet or Java Application?

A java applet is by definition to be used embedded in a browser. An applet cannot run standalone without the browser.
When you say "Web UI" and "applet" it smells like that this is what you have.

A java application OTOH can be run stand-alone and only needs the Java virtual machine.
--
Wil