org.statcato.utils
Class PrintMe

java.lang.Object
  extended by org.statcato.utils.PrintMe
All Implemented Interfaces:
java.awt.print.Printable

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

Prints text components. PrintMe is a class that lets you print documents on the fly for free ;) Printing in JDK 1.2 - 1.5 is hard. With this, you just simply call it in your application and add your text component like JTextPane: new PrintMe().print(YourJTextComponent); Reminder: Just make sure there is a text on your component ;P Author : Jan Michael Soan WebSite: http://www.jmsoan.com Date : 04/17/2004 Time : 2:20 PM


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
protected PrintMe()
           
 
Method Summary
 int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex)
           
protected  void print(javax.swing.JTextPane pane)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintMe

protected PrintMe()
Method Detail

print

public int print(java.awt.Graphics graphics,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
Specified by:
print in interface java.awt.print.Printable

print

protected void print(javax.swing.JTextPane pane)