During work on one of my last projects I faced to problem, how to add text over JTable print? I couldn’t find any solution which would suit to my case. After several hours of trying another approaches I found easy way how to add text over JTable print. Let’s see how to do this!
I suppose that you have code with JTable, which is filled with your data.
Let’s say that your app has “Print” button.
We need to implement code, which will be executed when click action will perform.
The tricky part is to implement JTablePrintableWrapper.
Hope you enjoy this post. If You have any questions or problems leave a comment or send email.