Dr. Strange
Java and HTML actually work really well together, but it can be complex. You would probably have to seek patches like swing or awt but you can do it, if you save the jpanel as a .jsps.
Different sources of code, or magic, can be combined with the proper patches.