I want to set the JTable header's font. Do you know how?
This should work:
table.getTableHeader().setFont(new Font("SansSerif", Font.ITALIC, 12));
JTableHeader header = table.getTableHeader();
header.setFont(new Font("Dialog", Font.BOLD, 18));
You should implement TableCellRenderer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With