I’m making an Applet that will display a 3D model of a customized object. THe form is filled out with JS and the Applet just generates the model. Now I’d like to print the whole page (the order information) and the rendered model, but it doesn’t work. What suggestions do you have?
If the APplet has OpenGL in it, it doesn’t show anything…
I’d appreciate your answers…
Render your output to an image.
Store the image on the server.
Using LiveConnect, you hide the applet
Using LiveConnect, you modify the webpage to load the image from the server ()
Print.
=> I hope you don’t have nicely styled hair, because you will start to pull it out.
Using LiveConnect, grab the contents if the form
Grab your model, in pixels, convert to an Image
Send everything through a Graphics instance you obtained from your PrinterDevice
Print.
=> You need to have a signed applet to do this. Equally bad for your haircut.
First of all, thank you for taking the time to respond.
I think option 1 is the best, I had also heard about I might be able to printscreen just the view part of the browser and print that, but I don’t know…
By the way, my hair is not nicely styled (I’m programmer remember? hahahaha)…
Thanks again… if you have any other suggestions just let me know… Have a good one!
Is this really necessary? Usually printing applets just work. I suspect you are using a GLCanvas. Try a GLJPanel instead.