posted 15 years ago
The print methods have only been introduced in Java 6. I suggest you upgrade to that version.
Alternatively you could implement your own Printable implementation:
This is a very naive approach implementation though, since it doesn't paginate at all - it will try to print everything on a single page.
In a proper solution, you need to calculate on which part of the pane to print based on the page. Hint: use graphics.translate() for that.