Printing JPanel

Hi everybody!

I want to print JPanel containing graph drawn with paint function.

I found code example to do that in:

http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html

But with this code when I send request to print, my original Panel content lost or it disappear.

Are there any method to print JPanel with its contente? Please help me.

[400 byte] By [PawanPa] at [2007-11-27 10:01:51]
# 1
hiwhich example you are using, they works fine with me.
Aniruddha-Herea at 2007-7-13 0:35:39 > top of Java-index,Desktop,Core GUI APIs...