Examples of printDialog()


Examples of java.awt.print.PrinterJob.printDialog()

        parmsPanel.getRotateToFit(),
        parmsPanel.getPrinterView());
   
    PrinterJob job = PrinterJob.getPrinterJob();
    job.setPrintable(print, format);
    if (job.printDialog() == false) return;
    try {
      job.print();
    } catch (PrinterException e) {
      JOptionPane.showMessageDialog(proj.getFrame(),
          StringUtil.format(Strings.get("printError"), e.toString()),
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

    try
    {
      reportPane.fireProcessingStarted();
      printerJob.setPageable(reportPane);
      printerJob.setCopies(getNumberOfCopies(reportConfiguration));
      if (printerJob.printDialog())
      {
        printerJob.print();
        return true;
      }
      return false;
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

    printJob.setPageable(book);
    try
    {
      if (withPrintDialog)
      {
        if (printJob.printDialog())
        {
          printJob.print();
        }
        else
        {
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

        this.componentToBePrinted = componentToBePrinted;
    }
    public void print() {
        PrinterJob printJob = PrinterJob.getPrinterJob();
        printJob.setPrintable(this);
        if (printJob.printDialog()) {
            try {
                printJob.print();
            } catch (PrinterException pe) {
                s_log.error("Error printing", pe);
            }
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

               PrinterJob printerJob = PrinterJob.getPrinterJob();

               printerJob.setPrintable(_viewer);

               if (printerJob.printDialog())
               {
                  printerJob.print();
               }
            }
            catch (Exception e)
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

            displayPageDialog = false;
          }
        }
        if(displayPrintDialogOnlyOnce)
        {
          if(!printerJob.printDialog(printRequestAttributeSet))
          {
            printStatus = new Boolean[]{Boolean.FALSE};
            return;
          }
          else
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

          {
            printerJob.pageDialog(printRequestAttributeSet);
          }
          if (displayPrintDialog)
          {
            if (printerJob.printDialog(printRequestAttributeSet))
            {
              status.add(Boolean.TRUE);
              printerJob.print(printRequestAttributeSet);
            }
            else
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

                   OrientationRequested.PORTRAIT);
        Document doc = myProject.getDocument();
        if (doc != null)
            attr.add(new JobName(doc.getDescription(), language.getLocale()));

        if (prnJob.printDialog(attr)) {
            try {
                prnJob.print(attr);
                setVisible(false);

            } catch (Exception e) {
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

    boolean silent
    ) throws PrinterException
  {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPageable(document);
    if(!(silent || printJob.printDialog()))
      return false;

    printJob.print();
    return true;
  }
View Full Code Here

Examples of java.awt.print.PrinterJob.printDialog()

    if (this.home.getName() != null) {
      jobName += " - " + this.controller.getContentManager().getPresentationName(
          this.home.getName(), ContentManager.ContentType.SWEET_HOME_3D);
    }
    printerJob.setJobName(jobName);
    if (printerJob.printDialog()) {
      return new Callable<Void>() {
          public Void call() throws RecorderException {
            try {
              printerJob.print();
              return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.