bookExamples.ch44Printing
Class ComponentPrintTest

java.lang.Object
  extended by bookExamples.ch44Printing.ComponentPrintTest
All Implemented Interfaces:
java.awt.print.Printable

public class ComponentPrintTest
extends java.lang.Object
implements java.awt.print.Printable


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
ComponentPrintTest(java.awt.Container[] c)
           
 
Method Summary
static javax.swing.JPanel getWhitePanel(int w, int h)
           
static void main(java.lang.String[] args)
           
static void print()
           
 int print(java.awt.Graphics graphics, java.awt.print.PageFormat pf, int pageIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPrintTest

public ComponentPrintTest(java.awt.Container[] c)
Method Detail

getWhitePanel

public static javax.swing.JPanel getWhitePanel(int w,
                                               int h)

print

public int print(java.awt.Graphics graphics,
                 java.awt.print.PageFormat pf,
                 int pageIndex)
          throws java.awt.print.PrinterException
Specified by:
print in interface java.awt.print.Printable
Throws:
java.awt.print.PrinterException

main

public static void main(java.lang.String[] args)

print

public static void print()