I studied the sample code here about jtable printing and works great for me. Now I am facing another problem. How to define text to print before and sometimes after jtable content? Would it be wise to create an html header or footer and insert it, as the tutorial code shows? Or is this the best way to do this? The text will consist of several static lines, and some with values that the user predefines before creating the jtable.
source
share