Hi all,

I have a problem with printing a Swing gui page (Windows NT4, Java3D 1.2,
JDK1.2.2, JRE1.3) containing some Swing components and a panel containing a
canvas3D; I had some succes printing the isolated canvas, thanks to the
several suggestions/solutions in the java3d-interest archives and by
conforming the canvas to the Printable interface.

However when I want to print the whole GUI including Swing components and
the canvas3D, the Printable is much higher (say the JFrame) in the
components-tree, and on receiving the print() command the components should
eventually have their print() called.
   Putting the code that worked in the isolated canvas-case in 'public void
print(Graphics g)' of the canvas, doesn't work; even all the swing
components in the rootframe won't print.

I tried the getBufferedImage/postswap and the offscreencanvas3d approaches;
looking at the time they both take to at least try printing I suspect the
image to print is created succesfully; question is: how to get it in, or
make it part of the overall Swing GUI after it has been created? I tried to
apply the bufferedImage as a J2D texturepaint to a rectangle the size of the
original canvas3d, to no avail.

Who can help? Thanks,
Harry

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to