| Button | Function |
| Read .HTML file | Opens a file dialog, read .html file into display window. |
| Print Preview | Opens the standard J2PrinterWorks print preview dialog. |
| Print to PS | Calls the method printToPS("out.ps"). |
J2Printer14 printer = new J2Printer14(); |
J2TextPrinter textPrinter = new
J2TextPrinter(yourJTextPane); |
printer.addPageable(textPrinter); |
printer.setLeftMargin(.25); |
printer.setRightMargin(.25); |
printer.setTopMargin(.25); |
printer.setBottomMargin(.25); |
printer.printToPS("printout.ps"); |
