Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multi line cells in Jtable  RSS feed

Jay Shaw
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me on this? I have a JTable with 3 columns in which my 3rd column should hold multi line cells. Now I created a custom cell renderer extending JTextarea and did wordwrap and line wrap. I also did a setCellRenderer to my third column. But somehow when I have a long string passed into that cell, it only appears as a single line where i can see only partial string.
Could someone send me some code snippets regarding this like the cell renderer code and the iteration code which is used to get the max row height.
really appreciate it,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!