I never tried this but if I had to I would google on "embedding activeX in java".
Flash uses an activex control to integrate in a browser so you can use that to integrate with your app. After searching on google I came up with the following link. Take a look. It should be able to do the trick. It is rather complex though.