Have you used Sun's on-line Java tutorials? Great place to learn. The
main URL is: http://java.sun.com/docs/books/tutorial/
Regarding your print dialog, yes, you can use one. Here is a link to the
tutorial section that provides a sample print program that uses the
printDialog() method to prompt the user for printer, number of copies,
etc.:
http://java.sun.com/docs/books/tutorial/2d/printing/component.html
Here's a more general reference to printing. It too gives a dialog
example that may be even easier to follow:
http://java.sun.com/docs/books/tutorial/2d/printing/index.html
Hope that helps.