0
https://stackoverflow.com/questions/8187639/jtable-with-titled-rows-and-columns
MessageFormat header = new MessageFormat("Report Print");
MessageFormat footer = new MessageFormat("Page[0,number,integer]");
try {
table.print(JTable.PrintMode.FIT_WIDTH, header, footer);
}catch(Exception e){
JOptionPane.showInternalMessageDialog(null, "Unable to Print");
}
Post your complete code, this piece makes no sense. And explain in more detail what you want to do.
– user28595
I used the link code, because I need titles in both rows and columns, tbm need to somehow write the matrix the problem is, there is no way to write matrix using the code above because the titles of the rows do not appear in the saved pdf example mode. I’m not going to post my entire code because there’s a lot of stuff inside and the project is really big. Understand that I used the link code and to export the matrix I used the low code
– user33467
Honestly, I don’t understand anything.
– user28595
I need to create a table right? I used Jtable and the link code because I need to put an ID on both columns and rows. I used the code described above to save the matrix, but the code saves the matrix but does not save the identification of the lines, I want to know how to save the identification of lines tbm
– user33467
I turned here and it looks exactly like it is there in the answer. I don’t understand what you mean by matrix identification, where there is none in the code.
– user28595