In a JTable, how can I make some rows automatically increase height to show the complete multiline text inside? This is how it is displayed at the moment:

I do not want to set the height for all rows, but only for the ones which have multiline text.
In a JTable, how can I make some rows automatically increase height to show the complete multiline text inside? This is how it is displayed at the moment:

I do not want to set the height for all rows, but only for the ones which have multiline text.