![]() |
Troubleshooting |
![]() |
Problem | Possible
cause(s) |
Action |
HTML printed incorrectly |
Java JTextPane can't display your HTML J2TextPrinter can't print your JTextPane |
1) Run J2TextPrinterTestApplication. 2) Open your HTML file 3) See if JTextPane is able to display your HTML file. Modify it until it does. See "Working with HTML" 4) Select Print Preview, see if J2TextPrinter is able to print your JTextPane. |
HTML style runs shift left or right HTML text clipped on right |
Bug
Parade 4724061 Bug Parade 4352983 |
Intermix <a> tags into text, see "Known Problems:
J2TextPrinter" |
Non-ASCII (e.g. Unicode) characters won't print |
Java serialization bug |
Use setCloningUsed(false) or Upgrade to JDK 1.4.2 |
JTextPane with embedded components won't print
("CloneException") |
JTextPane or inserted Component not serializable Components can't appear to two views at once |
Use setCloningUsed(true) and/orUse
setSeparatePrintThread(false) and/orPrint from 2nd copy of JTextPane not on screen and/or Switch to a J2FlowPrinter alternating J2TextPrinter and J2PanelPrinter |
User inputs won't print in HTML <form> |
Inputs lost when print copy made |
Use setDirectPrint(true)
|
Can't set HTML border size to 1 |
Bug Parade 4285636 | Switch to JTable, use J2FlowPrinter alternating
J2TextPrinter and J2TablePrinter |
JTable won't print using custom
Look & Feel (e.g. Kunststoff) |
Bug in Kunststoff |
Upgrade to Kunststoff 2.0.1 or
later or Switch to BasicTableHeaderUI (see FAQ J2TablePrinter Q6) |
Not keeping image and caption
together, split across page boundary |
Put image and caption in a
JPanel, put that in another JPanel, print with J2PanelPrinter |
|
Image being split across page
boundary |
Use setMaximumPaginationGap(val)
with val >imageHeight/pageHeight |