Printable table and textarea

Hello All,

I just need some direction, not looking for code. I have a split panel with a table in the top and text area in the bottom. Neither of which are of a set size since they are populated w/ data from a database.

There is a nifty print button i have to add and it will print the contents of the table and the textarea (not just the visible area because both are scrollable). The text area will always have a fixed width but not length and I have it printing good enough for now (single page using myTextArea.paint(myGraphics2D)).

I'm confused as to how to get the table and the text area into the same printjob and be able to deal w/ rendering/paging it correctly.

All the examples I've seen are simplistic in that they are all text, all graphics, single component, and/or single page.

Anyone have a direction for me?

Thanks :)

[880 byte] By [txjumpa] at [2007-11-26 16:09:47]
# 1

Search these forums or google for my StandardPrint class. It handles paging etc. All you'd need to do is create another component that layed out your table and your textarea as you'd like to see it printed

You are welcome to use and modify StandardPrint, but please don't take credit for it as your own work or change the package

tjacobs01a at 2007-7-8 22:32:06 > top of Java-index,Desktop,Core GUI APIs...
# 2
Oooh...Excellent. Way more than I was looking for but I will definitely try it out.Thanks so much for sharing your work!
txjumpa at 2007-7-8 22:32:06 > top of Java-index,Desktop,Core GUI APIs...