How can I do printing in Java with layouts instead of low level coordinates?

Posted by Jonas on Stack Overflow See other posts from Stack Overflow or by Jonas
Published on 2010-04-15T12:39:31Z Indexed on 2010/04/15 12:43 UTC
Read the original article Hit count: 237

Filed under:
|
|
|

I need to to some printing from my Java Swing application. I have tried to use Java Tutorials, but everything is very low level, and time-consuming. I have to specify the coordinates for every line that I want to print. It it also very lowlevel to use text, because I have to use FontMetrics and calculate what space all text fills up.

Is there any easier way to to printing in Java? I would like to design the documents with something like layout managers instead. Any good library or API?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing