基本上,没有什么是故意的。BasicTableUI中的相关代码注释:
// JTable's original row height is 16. To correctly display the// contents on Linux we should have set it to 18, Windows 19 and// Solaris 20. As these values vary so much it's too hard to// be backward compatable and try to update the row height, we're// therefor NOT going to adjust the row height based on font. If the// developer changes the font, it's there responsability to update// the row height.
从好的方面说,像fi Nimbus这样的一些LAF尊重rowHeight的ui属性:
UIManager.put("Table.font", new FontUIResource(new Font("SansSerif", Font.PLAIN, 28)));// here simply the font height, need to do better int height = 28;UIManager.put("Table.rowHeight", height);


