How can we print the data of a mysql results set on the printer with correct alignments of each data rows and columns? Lets say, we get a dataset from a mysql database and populate that data in to a JTable, out of that JTable is there a way to get a printed hard-copy without any borders and lines of the JTable?
Share
You need to pad each column with spaces and make it the same length as the column size.