print function in JTable
Hey all,
I'm not sure if every1 know there's a print function in JTable.
thats right,
What ever is in the table will be printer.
it also brings up a Printer dialog box, with options which printer to use,
landscape, potriat, etc.
now i have 1 problem.
with 1 table it print every thing fine.
i also got another table that only print the 1st column.
I dunno y it's doing this, i'm doing the same thing with the other table.
does any1 have a clue y it might be doing this?
I'll post the code in my next post, since i don't have it with me right now.
thanks,
is there another easy way to print?
[682 byte] By [
avdzma] at [2007-10-3 3:39:14]

hey well i kinda solved it,
i added to more empty column, n 4 some reason it's print the columns i want.
Originally. there's only 3 i need, b4 it was only printing just 1.
Now i have 5 columns n it's printing 3.
i am interested on how to print things via the printer properly.
n y it's doing this.
avdzma at 2007-7-14 21:34:40 >

Hey well i figured out, y it's cutting the table
The PrintMode is wet by default to cut n fit on the page.
there's another optional where it print everything even if it has to fit it on another page.
the code is
try{
table.print(PrintMode.NORMAL, new MessageFormat(some message),new MessageFormat("Page {0,number}"));
}
thanks anyway
avdzma at 2007-7-14 21:34:40 >
