
- Any sequence of JTable, JTree, JTextPane, JTextArea, JEditorPane, and JPanel can be arranged and printed.
- The components to be printed do not have to be displayed on the screen; they can be created solely for printing.
- You can specify the vertical gap between adjacent components, and control the pagination of the components in the list.
- You can specify that a horizontal line be printed in the gap between adjacent components.
The images below show the first two pages of a document containing a JPanel, a JTable, and a Text Component.
![]() |
![]() |