I have a JTable
that has four columns. I am using iText libraries to print PDF documents with data from the JTable. The problem is that the JTable is not showing properly in the PDF. I have searched on Google and came across the same situation here. The code is similar to mine as well as the output. I have also tried this example using Templates, however, the result is not changing.
How do we solve this? Please assist. If the codes are necessary, i will post but they are too many classes -i am working on a big application. The concept I would want is to make the JTable fit on the document.
After a long struggle, I managed to make it as shown below. In case someone encounters this, here is the idea that saved me: