Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

J2TextPrinter instances in a J2FlowPrinter do not print back-to-back with the other Flowables, instead theres a blank line or gap separating them, why?

0
Posted

J2TextPrinter instances in a J2FlowPrinter do not print back-to-back with the other Flowables, instead theres a blank line or gap separating them, why?

0

By default, JTextPane has a white border of 3 pixels on all four sides, so back-to-back J2TextPrinter instances will have a 6 pixel gap separating them. To eliminate this gap, set the underlying JTextPane border to an EmptyBorder with zero insets, i.e.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123