PrintMe
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="PrintMe";
}
}
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
org.statcato.utils
Class PrintMe
java.lang.Object
org.statcato.utils.PrintMe
All Implemented Interfaces: java.awt.print.Printable
public class PrintMeextends java.lang.Objectimplements 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)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Wyszukiwarka
Podobne podstrony:
printMatrixPrintMeJTable PrintModePrintModeprintMatrixJTable PrintModewięcej podobnych podstron