I have a JTable. In this JTable, there are cell where the text span several lines. I tried implementing a cell renderer which uses a JTextArea inside a JScrollPane. Of course this did not work.

How can I have a cell where the contents are scrollable?