dcsimg

How do I attain a MultiLine text in a JTable header?

Sandip Chitale

The default JTable Header is implemented using a JLabel which supports the simple HTML syntax. Thus you could use

"<html>First Line< br>Second Line</html>"

as header string for a column.