It actually depends on what you mean by a "web based application" -
If you just want to be able to *launch* your swing based application from a website and have the code download automatically - look into
Java Web Start.
If you're looking for a way to execute a Swing application as a series of web pages with HTML forms instead of Swing GUIs - then Ulf is correct - there is no tool to automatically do this.