How to print a multi page long JTextArea

is there a way to get the contents of a JTextArea, that holds many lines of text, to print to multiple pages, I tried the normal way with the g.drawString(jtextarea.getText());
but after 26 lines my page is full so it stops there.

Where are you "printing" the text?
The drawString method will draw it on a GUI component.

Can you explain what you want to do? How many lines are in the textarea and how many lines do you want displayed? Where do you want them displayed? If there are too many to draw on a GUI, what then? A "Next Page" button to clear the GUI and draw the next n lines?