在构造方法或main()方法中加入以下代码,当然字体随你设置
      java.awt.Font font = new java.awt.Font("Ms Sans Serif", 0, 16);
      javax.swing.UIManager.put("TableHeader.font", font);

解决方案 »

  1.   

    Column headers: By default, a JdbTable has a column header with black text on a gray background. Each column's default text is the caption property of the corresponding DataSet Column. To change the text, set the caption property. To display several lines of text in a column header, separate them with newline characters, '\n', in the Column's caption. To hide column headers, set the columnHeaderVisible property to false. You can also change the color or font of the column header or disallow rearrangement of columns at runtime with code like this:  
    myJdbTable.getTableHeader().setBackground(Color.cyan);
    myJdbTable.getTableHeader().setReorderingAllowed(false);