This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable cellrenderer with a column having JTextArea cell renderer  RSS feed

mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone give me ideas/clues/explanations

a JTable cellrenderer having a column with a JTextArea cellrenderer

the row height of this JTable cellrenderer does not adjust its rows accordingly

in my outer JTable, i use table.setRowHeight(row, table_cell_renderer.getPreferredSize().height);
this works if my inner JTable's JTextArea cell renderer has setRows() value but if i setRows(0) because i want the inner JTable's rows to adjust its height based on the JTextArea's content, it doesnt work

please see attached image

[Thumbnail for table.jpg]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!