2010-12-10 23 views

Respuesta

38

Esto debería funcionar:

table.getTableHeader().setFont(new Font("SansSerif", Font.ITALIC, 12)); 
1

Debe implementar TableCellRenderer.

+0

enlace web apunta a un sitio web de estafa .. – dendini

3
JTableHeader header = table.getTableHeader(); 
header.setFont(new Font("Dialog", Font.BOLD, 18)); 
0

también puede utilizar esto para establecer la fuente de toda la cabecera de la mesa:

UIManager.put("TableHeader.font", font1); 
Cuestiones relacionadas