Examples of defaultPage()


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

                return;
            }

            //  Get properties from PrintDialog UI
            PrinterJob printerJob = printerDialog.getPrinterJob();
            PageFormat pageFormat = printerJob.defaultPage();
            printerJob.setJobNamed.toString() );

            d.setSelectionPrintMode( ((Boolean)printerDialog.getPropertyValue(PrintDialog.PRINT_SELECTION)).booleanValue() );
            d.setPrintBackgroundColor( ((Boolean)printerDialog.getPropertyValue(PrintDialog.PRINT_BACKGROUND)).booleanValue());
            d.setScaleSheet(((Boolean)printerDialog.getPropertyValue(PrintDialog.SCALE_SHEET)).booleanValue());
View Full Code Here

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

    PrinterJob printJob = PrinterJob.getPrinterJob();

    // fix for bug ID 6255588 from Sun bug database
    initPrinterJobFields(printJob);
   
    PageFormat pageFormat = printJob.defaultPage();
    Paper paper = pageFormat.getPaper();

    printJob.setJobName("JasperReports - " + jasperPrint.getName());
   
    switch (jasperPrint.getOrientationValue())
View Full Code Here

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

              status.add(Boolean.FALSE);
            }
          }
          else
          {
            PageFormat pageFormat = printerJob.defaultPage();
            Paper paper = pageFormat.getPaper();
           
            switch (jasperPrint.getOrientationValue())
            {
              case LANDSCAPE :
View Full Code Here

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

   * Returns a <code>PageFormat</code> object created from <code>homePrint</code>.
   */
  public static PageFormat getPageFormat(HomePrint homePrint) {
    final PrinterJob printerJob = PrinterJob.getPrinterJob();
    if (homePrint == null) {
      return printerJob.defaultPage();
    } else {
      PageFormat pageFormat = new PageFormat();
      switch (homePrint.getPaperOrientation()) {
        case PORTRAIT :
          pageFormat.setOrientation(PageFormat.PORTRAIT);
View Full Code Here

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

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void printButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_printButtonActionPerformed
        PrinterJob pjob = PrinterJob.getPrinterJob();
        PageFormat pf = pjob.defaultPage();
        pjob.setPrintable(this, pf);

        try {
            if (pjob.printDialog()) {
                pjob.print();
View Full Code Here

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

                        menuItem.addActionListener(new ActionListener()
                        {
                            public void actionPerformed (ActionEvent ev)
                            {
                                final PrinterJob printerJob = PrinterJob.getPrinterJob();
                                if (m_pageFormat == null) m_pageFormat = printerJob.defaultPage();
                                PageFormat pf = printerJob.pageDialog(m_pageFormat);
                                if (pf != m_pageFormat)
                                {
                                    m_pageFormat = pf;
                                    printerJob.setPrintable(m_imgView, m_pageFormat);
View Full Code Here

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

        //
        PrinterJob printerJob =
            PrinterJob.getPrinterJob();

        PageFormat pageFormat =
            printerJob.defaultPage();

        //
        // Set the page parameters from the hints
        //
        Paper paper = pageFormat.getPaper();
View Full Code Here

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

        //
        PrinterJob printerJob =
            PrinterJob.getPrinterJob();

        PageFormat pageFormat =
            printerJob.defaultPage();

        //
        // Set the page parameters from the hints
        //
        Paper paper = pageFormat.getPaper();
View Full Code Here

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

        //
        PrinterJob printerJob =
            PrinterJob.getPrinterJob();

        PageFormat pageFormat =
            printerJob.defaultPage();

        //
        // Set the page parameters from the hints
        //
        Paper paper = pageFormat.getPaper();
View Full Code Here

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

        //
        PrinterJob printerJob =
            PrinterJob.getPrinterJob();

        PageFormat pageFormat =
            printerJob.defaultPage();

        //
        // Set the page parameters from the hints
        //
        Paper paper = pageFormat.getPaper();
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.