Printing in swing

Hi all,

I want to print all the contents in a pane by the click of a button,i.e it need to ask for printersetup like normal print option...

Note : the pane contains imageicon,a table and some labels..

please help me in this with a sample code....

thanks in advance

[295 byte] By [Java@2007a] at [2007-11-27 10:20:31]
# 1

what about this: http://www.java2s.com/Code/Java/2D-Graphics-GUI/Print.htm

Dont forget the Dukes ;)

java_2006a at 2007-7-28 17:04:04 > top of Java-index,Desktop,Core GUI APIs...