NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Printing the Display

hello folks
I am printing my display with this code

  class VisadPlotPrint implements Runnable
    {

  public void run()
   {
      PrinterJob printJob = PrinterJob.getPrinterJob();
      PageFormat pf = printJob.defaultPage();

      pf = printJob.pageDialog(pf);
      printJob.setPrintable(display.getPrintable(),pf);

      if (printJob.printDialog())
      {
       try {
    printJob.print();
           }
       catch (Exception exc)
    {
    exc.printStackTrace();
    }
       }
  }
    }


but my printing is not complete. Only half of the display is on the
printing.
What can i do ?
Something with the PageFormat ?

thanks
larsson


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: