Those are part of code:
Toolkit toolkit = Toolkit.getDefaultToolkit();
PrintJob pj = toolkit.getPrintJob(new Frame(),"Printing..",null);

it will display the print dialog but unfortunately it only can select print all. How do I able to select page to page in the Print Dialog??

thanks