Hello All!

I'm trying to print just a few lines of text via a network printer. But time delay is really notable: for 1-5 lines it takes 4-6 minutes.

Java Code:
PrinterJob job = PrinterJob.getPrinterJob();
            PageFormat pf = job.defaultPage(); //job.pageDialog(aset)
            job.setPrintable(new OrderPrinter(), pf);
            PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
            PrintService selectedService = null;
            for (int i = 0; i < printServices.length; i++) {
                if (printServices[i].getName().equals("\\\\printserver\\usbhp")) {
                    selectedService = printServices[i];
                    break;
                }
            }
            if (selectedService != null) {
                job.setPrintService(selectedService);
                job.print();
            }
Java Code:
class OrderPrinter implements Printable {
 
        public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
            if (pageIndex > 0) {
                return NO_SUCH_PAGE;
            }
            Graphics2D g2d = (Graphics2D) graphics;
            Line2D.Double line = new Line2D.Double();
            g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
            g2d.drawString("some text....", 10, 10);
            g2d.draw(line);
            int ls = 15;
            for (int i = 0; i < 10; i++) {
                ls += 15;
                g2d.drawString("more text....");
                g2d.draw(line);
            }
            return PAGE_EXISTS;
        }
    }
I'm using WindowsXP and jdk version is 1.6.0_17.

Thank you in advance!
Astghik