I have table that stores what a customer would have bought. The table is of the following format:
Columns: id fullName cell items.
The column items is of data type LONGTEXT. I want to store items as strings there. Under normal circumstances, the string will be represented as Text line 1,Text line 2,Text line 3,Text line 4 in the same cell and are shown the same way when displayed in a JTable.
My question: Is there a way to store strings as shown below in the same cell?
Text line 1
Text line 2
Text line 3
Text line 4
Or is it possible to show them in that layout in JTable cell?