I am trying to print a jTable, it seems there is a simple command JTable.print(), if my table is called jTable1 then jTable1.print(); should do it.
compiler does not agree and says cannot resolve symbol method. I have import javax.swing.table.*; which should be sufficient to provide this method. No doubt there is something terribly complicated that I am missing.
The ability to print tables was introduced in Java 1.5. There is nothing corresponding to it in Java 1.4. However, I am sure that if you search the web you can find some code that will print your table under Java 1.4.
I've worked with a comercial package that prints tables under both Java 1.4 and 1.5, although it does not work in applets (only applications). Its called the "Java Print Dialog Framework".
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop