When I try to print my JTable
, it automatically shrinks it down horizontally. How can I make it use the entire page width? I already tried both PrintMode.Normal
and PrintMode.Fit_Width
. Any help would be much appreciated.
Asked
Active
Viewed 21 times
0
-
I found a temporary fix for it. I display the JTable before i print it, so if i resize it and then try to print, it is scaled down and fits on my printed page. – Ahtap Nov 18 '21 at 20:06
-
Take a close look at [this example](https://stackoverflow.com/questions/26580954/how-to-print-selected-rows-jtable/26581137#26581137) and [this example](https://stackoverflow.com/questions/34742195/printing-selected-rows-from-jtable/34742430#34742430) – MadProgrammer Nov 18 '21 at 20:55
-
Please provide enough code so others can better understand or reproduce the problem. – Community Nov 21 '21 at 18:48