02-05-2011 02:35 PM
You can do this in Java using the BrowserField2 API. It is what we use inside the WebWorks Framework
The full source code of how we use it is installed on your desktop when you install the WebWorks SDK. It is in the "device_templates" directory.