Java JTable header word wrap
问题 I am trying to get the header on a table to have word wrap. I have managed to do this but the first data row is expanding. The code for the table is: public class GenerateTable extends JTable { private JCheckBox boxSelect = new JCheckBox(); private JTableHeader hdGen; public class LineWrapCellRenderer extends JTextArea implements TableCellRenderer { private static final long serialVersionUID = 1L; int rowHeight = 0; // current max row height for this scan @Override public Component